0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/rust/cyclotron-core/.sqlx/query-b3239c1dde9a88769ec488299612f7a3ad2b2ee57d8d2353c858299d7b6ffe13.json
Oliver Browne 9734a40c96
feat: cyclotron (#24228)
Co-authored-by: Brett Hoerner <brett@bretthoerner.com>
Co-authored-by: Ben White <ben@posthog.com>
2024-08-21 12:24:56 -06:00

24 lines
766 B
JSON

{
"db_name": "PostgreSQL",
"query": "UPDATE cyclotron_jobs\n SET state = $1, last_transition = NOW(), transition_count = transition_count + 1\n WHERE id = $2 AND lock_id = $3",
"describe": {
"columns": [],
"parameters": {
"Left": [
{
"Custom": {
"name": "jobstate",
"kind": {
"Enum": ["available", "completed", "failed", "running", "paused"]
}
}
},
"Uuid",
"Uuid"
]
},
"nullable": []
},
"hash": "b3239c1dde9a88769ec488299612f7a3ad2b2ee57d8d2353c858299d7b6ffe13"
}