-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
[API] endpoint to stop/kill a running job #225
Comments
Could use django's low level cache API to store the task IDs (or just the celery task object if it's serializable?) for a particular job or set our own task_id. |
Hi, I would like to work on this issue. |
The API endpoint has been added, thanks to @sp35. Now we need to add support for this to pyintelowl as well as IntelOwl-ng. |
Tracking in IntelOwl-ng as intelowlproject/IntelOwl-ng#70. |
New member function Tracking in pyintelowl as intelowlproject/pyintelowl#67. EDIT: also corresponding CLI command. |
In this case it would be nice to have a button - kill job or stop job.
Originally posted by @WhiteHatMR in https://github.com/intelowlproject/IntelOwl/issue_comments/707807962
We could add a
kill
button to the job (analysis) result page. This button when invoked should stop all ongoing celery tasks (i.e. all running analyzers) for the particular job. The status of such job should then be markedfailed
orkilled
.This sounds easy on paper, but would require much changes:
TERM
) (ref.) but it requires the ID for the particular task. So need a way to keep track of all celery task IDs for a particular job./api/kill_analysis/{job_id}
with appropriate permission enforcing i.e. If X created the job then only the admin and X should be allowed to kill it.Checklist:
The text was updated successfully, but these errors were encountered: