Acquires the lock for a single job that isn't started, completed, canceled, and that matches an array of provisioner types. SKIP LOCKED is used to jump over locked rows. This prevents multiple provisioners from acquiring the same jobs. See: https://www.postgresql.org/docs/9.5/sql-select.html#SQL-FO
(ctx context.Context, arg AcquireProvisionerJobParams)
| 41 | // multiple provisioners from acquiring the same jobs. See: |
| 42 | // https://www.postgresql.org/docs/9.5/sql-select.html#SQL-FOR-UPDATE-SHARE |
| 43 | AcquireProvisionerJob(ctx context.Context, arg AcquireProvisionerJobParams) (ProvisionerJob, error) |
| 44 | AcquireStaleChatDiffStatuses(ctx context.Context, limitVal int32) ([]AcquireStaleChatDiffStatusesRow, error) |
| 45 | // Bumps the workspace deadline by the template's configured "activity_bump" |
| 46 | // duration (default 1h). If the workspace bump will cross an autostart |
no outgoing calls