fix(Jobs): change request state to prepare_to_finish in case of an error

This commit is contained in:
2022-07-25 18:37:39 +02:00
parent d4da6aa518
commit 522b57ade4
2 changed files with 15 additions and 7 deletions

View File

@@ -98,7 +98,7 @@ public:
// assigned_to_job - the request is preserved and a new job will be called
// job_run - run in the job thread (objects are locked)
// finished - the request is finished and the object can be removed
enum RunState { not_assigned = 0, normal_run, assigned_to_job, job_run, job_continuation_run, finished};
enum RunState { not_assigned = 0, normal_run, assigned_to_job, job_run, job_continuation_run, prepare_to_finish, finished};
RunState run_state;