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

fix(controller): When semaphore lock config gets updated, enqueue the waiting workflows #4421

Merged
merged 29 commits into from
Nov 6, 2020

Conversation

sarabala1979
Copy link
Member

@sarabala1979 sarabala1979 commented Oct 30, 2020

Signed-off-by: Saravanan Balasubramanian sarabala1979@gmail.com

Checklist:

@@ -262,6 +284,56 @@ func (wfc *WorkflowController) createSynchronizationManager() error {
return nil
}

func (wfc *WorkflowController) runConfigMapWatcher(stopCh <-chan struct{}) {
retryWatcher, err := apiwatch.NewRetryWatcher("1", &cache.ListWatch{
Copy link
Member Author

Choose a reason for hiding this comment

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

Watcher is watching all configmap across namespace, We don't know the configmap name to get the version, so initialResourceVersion =1

@sarabala1979 sarabala1979 marked this pull request as ready for review November 2, 2020 18:16
@sarabala1979 sarabala1979 merged commit 9ecf049 into argoproj:master Nov 6, 2020
alexec pushed a commit that referenced this pull request Nov 6, 2020
… waiting workflows (#4421)

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexcapras pushed a commit to alexcapras/argo that referenced this pull request Nov 12, 2020
… waiting workflows (argoproj#4421)

Signed-off-by: Saravanan Balasubramanian <sarabala1979@gmail.com>
Signed-off-by: Alex Capras <alexcapras@gmail.com>
@agilgur5 agilgur5 added area/controller Controller issues, panics area/mutex-semaphore labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to workflow semaphore seems not to trigger reload semaphore state in workflow-controller
3 participants