Skip to content

Return response headers from delete_job - #2492

Open
amantebriwal4321 wants to merge 1 commit into
geopython:masterfrom
amantebriwal4321:fix/2481-delete-job-headers
Open

amantebriwal4321 wants to merge 1 commit into
geopython:masterfrom
amantebriwal4321:fix/2481-delete-job-headers

Conversation

@amantebriwal4321

@amantebriwal4321 amantebriwal4321 commented Nov 26, 2026 •

Copy link
Copy Markdown

Overview

Deleting a job worked, but the server still returned a 500. delete_job wasn't returning any headers, so Starlette failed when building the response after the job was already gone. Now it returns the headers the handler already builds, and the delete comes back as a normal success.

Related Issue / discussion

Fixes #2481

Additional information

Tested locally: test_delete_job passes. Two other tests in test_processes.py also fail on current master, unrelated to this change.

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

@github-actions github-actions Bot added the Human generated Label for the detect-ai workflow classifier label Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Human generated Label for the detect-ai workflow classifier

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the Starlette application, deleting a job returns HTTP 500 even though the process manager successfully cancels the job

1 participant