chef-boneyard / opscode-pushy-server

Chef Push Jobs Server
https://docs.chef.io/push_jobs.html
Apache License 2.0
16 stars 10 forks source link

Job cancellation logic not wired up in webmachine #118

Open markan opened 8 years ago

markan commented 8 years ago

The internal state machine and client allows jobs to be canceled, but it was never wired up in the webmachine interface so there is not REST based API to cancel a job.

Internally tracking this as https://chefio.atlassian.net/browse/PUSH-63

Adding webmachine hooks should be pretty straightforward: PUT to /pushy/jobs/ { "job_id": ID, "job_status": "cancel" }

calls pushy_job_state:stop_job(JobId)