Add seconds granularity in cron-trigger execute
Problem description
===================
Allow seconds interval for cron-trigger
Proposed change
===============
1) Replace croniter with apscheduler (Advanced Python Scheduler).
2) The new Scheduler will be BackgroundScheduler (A scheduler that runs in the background using a separate thread)
3) A new method will be added to triggers.py class, convert_
User Experience shouldn't change 5 fields cron expression will still be supported in addition to the new 6 fields format (sec/min/hour/day of month/month/day of the week)
Alternatives
------------
this is the only python library I found the support seconds in scheduled job
Use-cases
===============
monitoring an application (for example stack-check every 30 sec)
Blueprint information
- Status:
- Complete
- Approver:
- Renat Akhmerov
- Priority:
- Medium
- Drafter:
- Limor Stotland
- Direction:
- Approved
- Assignee:
- Limor Stotland
- Definition:
- Obsolete
- Series goal:
- Accepted for liberty
- Implementation:
- Implemented
- Milestone target:
- 1.0.0
- Started by
- Renat Akhmerov
- Completed by
- Renat Akhmerov
Related branches
Related bugs
Sprints
Whiteboard
Example
========
mistral cron-trigger-create -f value --pattern "* * * * * */30" my_trigger my_workflow input.json