Details
-
Improvement
-
Status: Closed
-
Not a Priority
-
Resolution: Duplicate
-
1.5.0
-
None
Description
- Request job that has been already cancelled
$ curl http://localhost:8081/jobs/b577a914ecdf710d4b93a84105dea0c9 {"jid":"b577a914ecdf710d4b93a84105dea0c9","name":"CarTopSpeedWindowingExample","isStoppable":false,"state":"CANCELED", ...omitted...}
- Cancel job again
$ curl -XPATCH http://localhost:8081/jobs/b577a914ecdf710d4b93a84105dea0c9\?mode\=cancel {"errors":["Job could not be found."]} (HTTP 404)
Since the actual job resource still exists, I think status code 404 is confusing. I think a better message should indicate that the job is already in state CANCELED.
Attachments
Issue Links
- duplicates
-
FLINK-24275 Allow idempotent job cancellation
- Closed