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

Improve reliability #50

Closed
tk3369 opened this issue Apr 14, 2021 · 1 comment · Fixed by #51
Closed

Improve reliability #50

tk3369 opened this issue Apr 14, 2021 · 1 comment · Fixed by #51

Comments

@tk3369
Copy link
Member

tk3369 commented Apr 14, 2021

Occasionally, the HoJBot would crash or stop functioning after a while. Until this known issue is fixed, I think we can still improve reliability but bouncing the bot often. Idea as follows:

  1. Add a keyword argument to the start_bot function called duration_minutes;
  2. Run an async task that
    • initialize a counter fromduration_minutes
    • wakes up every minute and count down
    • if counter becomes zero, exit the program
  3. Modify the run.sh script to run the julia command in a loop.
  4. Add a command line argument to run.sh to enable/disable the loop behavior. For example, I would disable the loop during development because I want to just hit Ctrl-C to exit. With this flag, it will never die.
@tk3369
Copy link
Member Author

tk3369 commented Apr 15, 2021

See #51 for an updated design

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

Successfully merging a pull request may close this issue.

1 participant