Add suspend and resume interface for scheduled operations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Karbor |
Fix Released
|
Undecided
|
zengchen |
Bug Description
There are some use cases that user want to suspend the scheduled operation (not schedule it from now), and then some time later he will resume it again (schedule it again). So in order to support this cases, we can add 'update' api to scheduled operation..
Based on the designs of Operation Engine, we can implement them by following steps separately.
add a new filed named 'enable' to db table 'scheduled_
1. suspend
unregister the scheduled operation which is registered to some trigger;
set the 'enable' to false
2. resume
register the scheduled operation to the trigger
set the 'enable' to True
When the Operation Engine service restarts, the operations whose 'enable' is true can be resumed.
Changed in smaug: | |
assignee: | nobody → zengchen (chenzeng2) |
summary: |
- Add pause and resume interface for scheduled operations + Add suspend and resume interface for scheduled operations |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/349869
Review: https:/