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

Two start sync messages fire off for a service #20461

Open
tamillaumudova opened this issue Oct 18, 2024 · 0 comments
Open

Two start sync messages fire off for a service #20461

tamillaumudova opened this issue Oct 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tamillaumudova
Copy link

Checklist:

  • [ + ] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [ + ] I've included steps to reproduce the bug.
  • [ + ] I've pasted the output of argocd version.

Describe the bug

We have a service with a presync hook that includes a db migration job. The trigger that sends slack notifications when a sync is running fires off for this service.

To Reproduce

We have the following logic to send the notifications for sync start messages to slack:

- when: app.status.operationState != nil and app.status.operationState.phase in ['Running']
  description: Application is being synced
  send: [app-sync-running]
  oncePer: app.status.operationState.syncResult.revision

When a service starts a sync, we have 1 message that notifies us on Slack about the sync start. For this particular service, we receive duplicate start sync messages every time.

Expected behavior

We receive 1 message for sync starting, instead we receive 2 for this service

Screenshots

Version

Paste the output from `argocd version` here.
v2.11.2

Logs

Paste any relevant application logs here.
@tamillaumudova tamillaumudova added the bug Something isn't working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant