MCPcopy Index your code
hub / github.com/coder/coder / GetProvisionerJobByIDForUpdate

Method GetProvisionerJobByIDForUpdate

coderd/database/querier.go:635–635  ·  view source on GitHub ↗

Gets a single provisioner job by ID for update. This is used to securely reap jobs that have been hung/pending for a long time.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

633 // Gets a single provisioner job by ID for update.
634 // This is used to securely reap jobs that have been hung/pending for a long time.
635 GetProvisionerJobByIDForUpdate(ctx context.Context, id uuid.UUID) (ProvisionerJob, error)
636 // Gets a provisioner job by ID with exclusive lock.
637 // Blocks until the row is available for update.
638 GetProvisionerJobByIDWithLock(ctx context.Context, id uuid.UUID) (ProvisionerJob, error)

Callers 4

TestSystemFunctionsMethod · 0.65
reapJobFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestSystemFunctionsMethod · 0.52