Skip to content
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

checking if the workflow exist before saving after validation #119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yashsinghcodes
Copy link
Member

Quick fix after yesterday outage where the workflow was keep recreating due to the validation part.

Copy link
Member

@frikky frikky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove what should be removed. Don't add even more validation

@@ -29289,6 +29289,14 @@ func checkExecutionStatus(ctx context.Context, exec *WorkflowExecution) *Workflo
workflowChanged = true
workflow.Validation.ValidationRan = true
workflow.Validation.ExecutionId = exec.ExecutionId

// Check if the workflow exist or not before saving (fix after 22/10/24 outage)
_, err = GetWorkflow(ctx, workflow.ID)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we getting the workflow, when we should be removing the SetWorkflow part entirely?

This makes very very little sense. This would require perfect deletion of Cache + Database timing down to the millisecond (or even cllser) with how the outage was

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants