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

Preserve the last launch date of scheduled tasks even after reboot #396

Open
berturion opened this issue Jul 15, 2024 · 3 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@berturion
Copy link

My Gaseous server instance is installed on a machine that shuts down every night to save power when I'm not using it.

Scheduled tasks do not retain their last launch date.

As a result, every morning the server starts as if no task had ever been launched.

Would it be possible to persist the last launch date of each task in a database or file so that the task scheduler can take it into account even after a reboot?

@michael-j-green
Copy link
Member

Thanks for the report. It should be doing this already, but I’ll double check it.

@michael-j-green michael-j-green added the bug Something isn't working label Jul 16, 2024
@michael-j-green michael-j-green added this to the v1.8.0 milestone Jul 16, 2024
@berturion
Copy link
Author

Just adding some information for you to investigate.

I am on Gaseous 1.7.4.0

For exemple, today:
image

Thank you.

@michael-j-green
Copy link
Member

Oh! That's normal.

After a server start, the initial state of the background tasks is always "Never started".

If you stop and restart the server now, they'll all reset to that state.

The last run time is still in there (it's required to calculate the next run time), just hidden until the task state changes.

I'll look at modifying this behaviour to make it a bit more clear what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants