mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 12:05:27 +08:00
test(postgres): stabilize expired claim takeover
This commit is contained in:
@@ -1019,8 +1019,8 @@ if (!migrationConnectionString || !runtimeConnectionString) {
|
|||||||
AS observed_at_ms
|
AS observed_at_ms
|
||||||
)
|
)
|
||||||
UPDATE "ql3"."trigger_schedules"
|
UPDATE "ql3"."trigger_schedules"
|
||||||
SET updated_at_ms = observation.observed_at_ms - 2,
|
SET updated_at_ms = observation.observed_at_ms - 30002,
|
||||||
claim_expires_at_ms = observation.observed_at_ms - 1
|
claim_expires_at_ms = observation.observed_at_ms - 30001
|
||||||
FROM observation
|
FROM observation
|
||||||
WHERE project_id = 'default' AND trigger_id = $1`,
|
WHERE project_id = 'default' AND trigger_id = $1`,
|
||||||
[takeoverTrigger.triggerId],
|
[takeoverTrigger.triggerId],
|
||||||
|
|||||||
Reference in New Issue
Block a user