mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 23:19:25 +08:00

When the thread is aborted, an exception is raised before the `start` of a job is set, and therefore raises an exception in the `ensure` block. This commit checks that `start` exists, and also adds `abort_on_exception=true` so that this issue would have caused test failures.