-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit scheduled event in connect transaction (#761)
This refactors the code that: - updates the `backend_state` table - emits the `BackendState` event Into one helper function that takes a transaction to execute in. This code path is then used both when updating state on the drone, and when creating the initial `Scheduled` state on the server. The `last_status_time`, `backend_state.created_at`, and the event's timestamp will all be the time of the transaction start.
- Loading branch information
Showing
5 changed files
with
73 additions
and
77 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
plane/.sqlx/query-0d342303480021311e9b1a8eedc8a4a4a3020425b60132c699d0c34178c509f3.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
plane/.sqlx/query-24969b8b9eb2523a633a971a2c64b6e320f49f151a06c2f6099b0165c3f73208.json
This file was deleted.
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
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