MCPcopy Create free account
hub / github.com/cloudbase/garm / HandleWorkflowJob

Method HandleWorkflowJob

runner/common/pool.go:56–56  ·  view source on GitHub ↗

HandleWorkflowJob handles a workflow job meant for a particular entity. When a webhook is fired for a repo, org or enterprise, we determine the destination of that webhook, retrieve the pool manager for it and call this function with the WorkflowJob as a parameter.

(job params.WorkflowJob)

Source from the content-addressed store, hash-verified

54 // a repo, org or enterprise, we determine the destination of that webhook, retrieve the pool manager
55 // for it and call this function with the WorkflowJob as a parameter.
56 HandleWorkflowJob(job params.WorkflowJob) error
57
58 // InstallWebhook will create a webhook in github for the entity associated with this pool manager.
59 InstallWebhook(ctx context.Context, param params.InstallWebhookParams) (params.HookInfo, error)

Implementers 3

basePoolManagerrunner/pool/pool.go
PoolManagerrunner/common/mocks/PoolManager.go
PoolManager_Expecterrunner/common/mocks/PoolManager.go

Calls

no outgoing calls