Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need activate/deactivate protocol #4

Open
ralmond opened this issue Apr 28, 2020 · 0 comments
Open

Need activate/deactivate protocol #4

ralmond opened this issue Apr 28, 2020 · 0 comments

Comments

@ralmond
Copy link
Owner

ralmond commented Apr 28, 2020

Need a better way of telling when EABN is running than just checking the process queue.

For RUN mode:

  1. Must be a signal to external processes about whether or not the process is running.
  2. Must be able to request a fast stop (as soon as current records is processed) or clean stop (after all records are processed).

For Rerun model:

  1. Must be able to signal process is running and when finished.
  2. Must be able to request a fast stop.

Database Mode:
Add a field in Application collection add a field EAactive with logical value. The $active() method sets it to true and the $deactivate() method sets it to false. Add a field EAsignal, which can take values "run", "finish" and "halt". The $activate() method sets this to "run".

No DB Mode:
In the appropriate log directory, there is a file named "EA.XXX". The $active() method creates the file with the extension "running". If this name is changed to "finish" or "halt", then this does the appropriate signal. The $deactivate() method deletes that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant