Uphold/StopWhenUnneeded/BindsTo: requeue when job finishes
When a unit is upheld and fails, and there are no state changes in the upholder, it will not be retried, which is against what the documentation suggests. Requeue when the job finishes. Same for the other two queues.
This commit is contained in:
@@ -1051,6 +1051,12 @@ finish:
|
||||
job_add_to_gc_queue(other->job);
|
||||
}
|
||||
|
||||
/* Ensure that when an upheld/unneeded/bound unit activation job fails we requeue it, if it still
|
||||
* necessary. If there are no state changes in the triggerer, it would not be retried otherwise. */
|
||||
unit_submit_to_start_when_upheld_queue(u);
|
||||
unit_submit_to_stop_when_bound_queue(u);
|
||||
unit_submit_to_stop_when_unneeded_queue(u);
|
||||
|
||||
manager_check_finished(u->manager);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user