8000 fix(api): FindOldestWorkflowRunsWithResultToSync by fsamin · Pull Request #6638 · ovh/cds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(api): FindOldestWorkflowRunsWithResultToSync #6638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/api/workflow/workflow_run_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ type ArtifactSignature map[string]string
func FindOldestWorkflowRunsWithResultToSync(ctx context.Context, dbmap *gorp.DbMap) ([]int64, error) {
var results []int64
query := `
select distinct workflow_run_result.workflow_run_id, workflow_node_run.status
select distinct workflow_run_result.workflow_run_id
from workflow_run_result
join workflow_node_run on workflow_node_run.id = workflow_run_result.workflow_node_run_id
where sync is NULL
Expand Down
0