8000 fix(worker): add retry on postWorkflowJobTestsResultsHandler · Issue #3581 · ovh/cds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
fix(worker): add retry on postWorkflowJobTestsResultsHandler #3581
Closed
@fsamin

Description

@fsamin

pprofLabel>recoverWrap>Handle>postWorkflowJobTestsResultsHandler>LoadAndLockNodeRunByID: internal server error (caused by: Cannot load node job: Unable to load workflow_node_run node=2604599: pq: could not obtain lock on row in relation "workflow_node_run")

we should handle the pq error pq: could not obtain lock on row in relation "workflow_node_run"to handle retry on all client function retries on this kind of error at client http level

func (c *client) QueueSendResult(ctx context.Context, id int64, res sdk.Result) error {
	path := fmt.Sprintf("/queue/workflows/%d/result", id)
	_, err := c.PostJSON(ctx, path, res, nil)
	return err
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0