argo-workflows icon indicating copy to clipboard operation
argo-workflows copied to clipboard

Workflows in the Pending state that are waiting for the mutex are not showing in the UI

Open omarkalloush opened this issue 1 year ago • 2 comments

Pre-requisites

  • [X] I have double-checked my configuration
  • [X] I can confirm the issues exists when I tested with :latest
  • [ ] I'd like to contribute the fix myself (see contributing guide)

What happened/what you expected to happen?

What happened?

I deployed 2 workflows that has the same mutex the 2nd one wasn't visible in the UI till the 1st one finished

What is expected to happen?

The 2nd one used to be shown in the UI with the yellow mark saying it's pending and waiting for the mutex

Version

v3.4.1

Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.

# Run this twice and notice the 2nd workflow behavior
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: synchronization-wf-level-
spec:
  entrypoint: whalesay
  synchronization:
    mutex:
      name:  test
  templates:
    - name: whalesay
      container:
        image: docker/whalesay:latest
        command: [cowsay]
        args: ["hello world"]

Logs from the workflow controller

kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

Logs from in your workflow's wait container

kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

omarkalloush avatar Oct 13 '22 16:10 omarkalloush

@OmarKalloush can you provide the version which was working this?

sarabala1979 avatar Oct 17 '22 17:10 sarabala1979

I have another environment with v3.3.9 it's working there

omarkalloush avatar Oct 17 '22 17:10 omarkalloush

@sarabala1979 Any updates?

omarkalloush avatar Oct 21 '22 20:10 omarkalloush

@OmarKalloush thanks for creating this issue, this due to the filtering not being done correctly. I am creating a PR for this now.

isubasinghe avatar Oct 26 '22 06:10 isubasinghe