feat: add runner failover policies and traces

This commit is contained in:
2026-05-12 02:16:42 +08:00
parent be31923e74
commit 05632172d0
26 changed files with 2033 additions and 140 deletions
@@ -0,0 +1,17 @@
UPDATE gateway_runner_policies
SET failover_policy = jsonb_set(
jsonb_set(
failover_policy,
'{maxDurationSeconds}',
COALESCE(failover_policy -> 'maxDurationSeconds', '600'::jsonb),
true
),
'{maxPlatforms}',
CASE
WHEN COALESCE(failover_policy ->> 'maxPlatforms', '') IN ('', '3') THEN '99'::jsonb
ELSE failover_policy -> 'maxPlatforms'
END,
true
),
updated_at = now()
WHERE policy_key = 'default-runner-v1';