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

Monitor continuously #9

Open
ModischFabrications opened this issue Jan 19, 2021 · 1 comment
Open

Monitor continuously #9

ModischFabrications opened this issue Jan 19, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ModischFabrications
Copy link
Owner

Keep polling the server even when noone is asking.

  • "online for 6 hours"
  • "no one played for an hour, stopping..."
@ModischFabrications
Copy link
Owner Author

ModischFabrications commented Jan 19, 2021

This can be merged with the scheduler.

Using a flag to turn this feature off is neat, but probably useless as this will consume very little resources either way.

Implementation idea:

  1. Start thread and poll server with underlying _observer every 30s, similar to scheduler
  2. log timestamp and type of each server change (state, players)
  3. turn off server after MAX_SERVER_IDLE_S
  4. purge old log entries or offer log via command?

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

No branches or pull requests

1 participant