ajvb / kala

Modern Job Scheduler
MIT License
2.12k stars 187 forks source link

Disable/enable a Job #184

Closed dzakaammar closed 6 years ago

dzakaammar commented 6 years ago

I see that a Job struct has a disable status. What do you do to change the disable status after job creation? Regards.

ajvb commented 6 years ago

Haha, never realized these endpoints were not documented! Sorry about that @dzakaammar

As you can see here, all you have to do is sent a POST request to either: /api/v1/job/disable/{id} or /api/v1/job/enable/{id} where {id} is the Job ID of the Job you want to disable or enable. That will disable or enable that job.

dzakaammar commented 6 years ago

Haha, no problem. Big thanks!