Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-44763: Reflect the lack of job cancellation support #174

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Jun 14, 2024

Unfortunately, there is no way to cancel a sync worker job within arq. ThreadPoolWorker does not offer this functionality, nor does ProcessPoolWorker. We would have to implement our own execution protocol in an external process that we could kill, which would pose cleanup problems.

Reflect this by removing the configuration option for setting a job timeout and forcing the UWS executionduration to 0 by default unless the service supplies a validator for it (in case there are services where the sync backend supports an explicit timeout parameter).

Also remove the vestiges of support for aborting a job, since there is no way to do that either given our worker implementation.

Unfortunately, there is no way to cancel a sync worker job within
arq. ThreadPoolWorker does not offer this functionality, nor does
ProcessPoolWorker. We would have to implement our own execution
protocol in an external process that we could kill, which would
pose cleanup problems.

Reflect this by removing the configuration option for setting a job
timeout and forcing the UWS executionduration to 0 by default unless
the service supplies a validator for it (in case there are services
where the sync backend supports an explicit timeout parameter).

Also remove the vestiges of support for aborting a job, since there
is no way to do that either given our worker implementation.
@rra rra enabled auto-merge June 14, 2024 02:13
@rra rra merged commit 8e8fe78 into main Jun 14, 2024
3 checks passed
@rra rra deleted the tickets/DM-44763 branch June 14, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant