-
-
Notifications
You must be signed in to change notification settings - Fork 745
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
Build st2 timers list just like st2 webhooks list. #2935
Comments
What would this return exactly? The entries from trigger_d_b? I'd love the output of apscheduler#printjobs. I was about to try to hack access to this myself (or query mongo to roll my own). |
I do think that the idea of exposing active timers through CLI in some more readable form than rules is a good one (e.g. runs every day at X, next scheduled run today at X). I would personally keep it to read-only though because allowing user to delete timers could cause consistency and other issues. |
Hi @lakshmi-kannan - The other day I tried to find the easiest way to see this output myself. In
The actual logs themselves were disappointing. Think it might just be easier to script over mongodb directly than try to leverage this helper function. Maybe use python-crontab if you want to see the specific next run date (which is admittedly cool).
|
Been playing with this a bit. You can give the job a name when calling Here's from my little helper test script
When I print the schedule now, I see stuff like
So perhaps just including this parameter in |
st2 timers list would be immensely useful for users. st2 timer delete can also be an option but then we might delete a timer and not the associated rule.
The text was updated successfully, but these errors were encountered: