Skip to content

Commit

Permalink
Seriously, we shoould drop postgres support
Browse files Browse the repository at this point in the history
  • Loading branch information
avillega committed Mar 7, 2025
1 parent 0199beb commit 23e54d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/app/subsystems/aio/store/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ const (
SET
state = 8, completed_on = $1 -- State = 8 -> Completed
WHERE
root_promise_id = $2 AND state in (1, 2) -- State in (Init, Enqueued)`
root_promise_id = $2 AND state in (1, 2, 4) -- State in (Init, Enqueued, Claimed)`

TASK_HEARTBEAT_STATEMENT = `
UPDATE
Expand Down
2 changes: 1 addition & 1 deletion internal/app/subsystems/aio/store/test/cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -4183,7 +4183,7 @@ var TestCases = []*testCase{
{
Id: "foo.1",
ProcessId: util.ToPointer("pid"),
State: task.Completed, // Task should remain in Claimed state
State: task.Completed,
RootPromiseId: "root",
Recv: []byte("foo"),
Mesg: []byte(`{"type":"resume","root":"root","leaf":"foo"}`),
Expand Down

0 comments on commit 23e54d5

Please sign in to comment.