Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24275

Allow idempotent job cancellation

    XMLWordPrintableJSON

Details

    • Attempting to cancel a FINISHED/FAILED job now returns 409 Conflict instead of 404 Not Found.

    Description

      As a user of Flink, I want to be able to cancel a job from an external system in a fault-tolerant way without guessing if the job has already been cancelled.

       

      Currently, the cancel endpoint (PATCH /jobs/:jobid?mode=cancel) will return a 404 if the job is already cancelled. This makes it hard to detect if the job truly doesn't exist, or if it is already in the desired state.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              austince Austin Cawley-Edwards
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: