Compute Engine workers should not pop the queue of tasks when it has been flagged as paused.
That implies creation of web services:
- POST api/ce/pause triggers the pause and returns immediately. The information is stored in table internal_properties. Workers stop pop-ing the queue. The in-progress tasks are finished and are not canceled. Pending tasks remain in queue.
- GET api/ce/info returns the field workersPauseStatus. Values are "PAUSING", "PAUSED" and "RESUMED" (default).
- POST api/ce/resume triggers the resume and returns immediately.
The status should also be available in api/system/info and displayed in System Info page.