attestantio / vouch

Apache License 2.0
112 stars 28 forks source link

Avoid deadlock in advanced scheduler. #32

Closed mcdee closed 3 years ago

mcdee commented 3 years ago

It was possible for a job to be triggered just before it was due to run due to its timer. This situation would cause a deadlock, resulting in Vouch terminating itself. This adds explicit early removal from the jobs list as well as additional checks when trigger conditions are met.