generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: case where a runner ends up reserved without a timeout (#393)
I believe this was being triggered when a controller creates a reservation transaction, issues the reservation to a runner, then dies before being able to complete the transaction. This leaves the runner in a state where it is telling controllers it's reserved, without having set a reservation_timeout, as the only place that was previously set was during the reservation transaction. The UpsertRunner calls were not setting this. To work around this, and another potential issue, I've added two triggers: 1. When a runner is set to the reserved state with a NULL reservation_timeout, set it to a default of 2m. 2. Update runner.module_name whenever runner.deployment_id is set or unset. Fixes #392
- Loading branch information
1 parent
87345f8
commit a55de4a
Showing
4 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters