mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Send SIGTERM when cancelling jobs ?
This commit is contained in:
parent
c903c5c0a7
commit
e3aabd4515
1 changed files with 1 additions and 0 deletions
1
run.py
1
run.py
|
@ -440,6 +440,7 @@ async def run_job(worker, job):
|
|||
}, ["jobs", f"job-{job.id}", f"app-jobs-{job.url_or_path}"])
|
||||
|
||||
except CancelledError:
|
||||
command.terminate()
|
||||
job.log += "\n"
|
||||
job.end_time = datetime.now()
|
||||
job.state = "canceled"
|
||||
|
|
Loading…
Add table
Reference in a new issue