terascope / teraslice

Scalable data processing pipelines in JavaScript
https://terascope.github.io/teraslice/
Apache License 2.0
50 stars 13 forks source link

JSON API _inactive fails with invalid job config #3471

Closed jeffmontagna closed 5 months ago

jeffmontagna commented 11 months ago

JSON API: POST /v1/jobs/{jobId}/_inactive

When _inactive is posted to a job the action will fail because there is a check that the job config is valid. The post will fail with a 500 and the error Validation failed for job config. In some cases connectors used by a job may have been removed from the cluster configuration, and it become impossible to set a job to inactive. _inactive should probably bypass the job validation or allow for a bypass as option.

godber commented 6 months ago

Assigning back to Jeff so he can validate this when we get this rolled out somewhere.

jeffmontagna commented 5 months ago

The fix for setting a job inactive works without an error.