FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Terminate subprocess when canceling by BryonLewis · Pull Request #1361 · Kitware/dive · GitHub

/ dive Public

Terminate subprocess when canceling - #1361

Merged
BryonLewis merged 1 commit into
mainfrom
terminate-subprocess
Aug 9, 2023
Merged

BryonLewis merged 1 commit into
mainfrom
terminate-subprocess

Conversation

Copy link
Copy Markdown
Collaborator

Within Girder and girder jobs itself when cancelling a job it calls celery revoke()
Girder Worker code: https://github.com/girder/girder_worker/blob/19b4fc3360a0c9d92fbd0ecd1bfab693f8c75ae7/girder_worker/girder_plugin/event_handlers.py#L142
Celery Reference for Revoke: https://docs.celeryq.dev/en/latest/userguide/workers.html#revoke-revoking-tasks

So it won't execute the task but it doesn't stop the execution of a currently running task.

This update checks in the logger for the Task to see if the task status is CANCELING. If it is it will then kill the subprocess used to run VIAME for both pipelines and training. Without this, the process needs to complete before the resources are released. This should make cancelling a task for training/pipelines actually kill the process itself.

marySalvi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

BryonLewis merged commit 5085640 into main Aug 9, 2023
BryonLewis deleted the terminate-subprocess branch August 9, 2023 16:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL