Skip to content

Commit

Permalink
fix(rq): Use POST instead of GET or DELETE
Browse files Browse the repository at this point in the history
  • Loading branch information
adityahase committed Jan 20, 2025
1 parent 51077d2 commit c145852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ def jobs(id=None, ids=None, status=None):
return jsonify(json.loads(json.dumps(data, default=str)))


@application.route("/jobs/<int:id>/cancel", methods=["GET", "DELETE"])
@application.route("/jobs/<int:id>/cancel", methods=["POST"])
def cancel_job(id=None):
job = AgentJob(id=id)
job.cancel_or_stop()
Expand Down

0 comments on commit c145852

Please sign in to comment.