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

ENH: log misfire #23

Closed
Miksus opened this issue Dec 15, 2021 · 0 comments
Closed

ENH: log misfire #23

Miksus opened this issue Dec 15, 2021 · 0 comments
Labels
core Relates to the core functionalities (ie. base classes) enhancement New feature or request

Comments

@Miksus
Copy link
Owner

Miksus commented Dec 15, 2021

Is your feature request related to a problem? Please describe.
Sometimes it may be beneficial to know when a task has not been launched in the given execution period due to other constraints in other conditions.

Describe the solution you'd like
In addition to last_success, last_fail etc. log similarly the last_misfire when a task did not execute in its period. This could be logged in __bool__ of a task.

Then one could build conditions like:

@FuncTask(start_cond="after task 'mytask' misfired")
def handle_misfire():
    ...

There could be an option to store the misfires in logs in session.config, for example "log_misfire": True.

Describe alternatives you've considered
Alternatively one could make a task that inspects the same thing and executes constantly.

@Miksus Miksus added enhancement New feature or request core Relates to the core functionalities (ie. base classes) labels Dec 15, 2021
@Miksus Miksus closed this as completed Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relates to the core functionalities (ie. base classes) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant