We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5120fb1 commit 8d4fa5aCopy full SHA for 8d4fa5a
coderd/database/queries/provisionerjobs.sql
@@ -275,14 +275,14 @@ FROM
275
provisioner_jobs
276
WHERE
277
(
278
- -- If the job has not been started within $1, reap it.
+ -- If the job has not been started before @pending_since, reap it.
279
updated_at < @pending_since
280
AND started_at IS NULL
281
AND completed_at IS NULL
282
)
283
OR
284
285
- -- If the job has been started but not completed within $2, reap it.
+ -- If the job has been started but not completed before @hung_since, reap it.
286
updated_at < @hung_since
287
AND started_at IS NOT NULL
288
0 commit comments