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

Cron: don't create minutely workflow on spec error #13701

Open
3 of 4 tasks
tooptoop4 opened this issue Oct 3, 2024 · 4 comments · May be fixed by #13789
Open
3 of 4 tasks

Cron: don't create minutely workflow on spec error #13701

tooptoop4 opened this issue Oct 3, 2024 · 4 comments · May be fixed by #13789
Labels
area/cron-workflows problem/more information needed Not enough information has been provide to diagnose this issue. problem/stale This has not had a response in some time type/bug

Comments

@tooptoop4
Copy link
Contributor

tooptoop4 commented Oct 3, 2024

Pre-requisites

  • I have double-checked my configuration
  • I have tested with the :latest image tag (i.e. quay.io/argoproj/workflow-controller:latest) and can confirm the issue still exists on :latest. If not, I have explained why, in detail, in my description below.
  • I have searched existing issues and could not find a match for this bug
  • I'd like to contribute the fix myself (see contributing guide)

What happened? What did you expect to happen?

if we push new cron workflow with some errors, argo could replace it with default one dummy workflow which will run every minute

export const exampleCronWorkflow = (namespace: string): CronWorkflow => ({
metadata: {
name: randomSillyName(),
namespace,
labels
},
spec: {
workflowMetadata: {labels},
schedule: '* * * * *',

We need option to change this default workflow to some invalid one, to prevent unnecessary dummy jobs run.

this is noted in a comment of the 3.6 blog post but i have also noticed this

Version(s)

3.5.11

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

n/a

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
@agilgur5 agilgur5 changed the title Cron - don't create minutely workflow on spec error Cron: don't create minutely workflow on spec error Oct 3, 2024
@Joibel Joibel added the problem/more information needed Not enough information has been provide to diagnose this issue. label Oct 4, 2024
@Joibel
Copy link
Member

Joibel commented Oct 4, 2024

Could you provide further information on the exact steps to reproduce this?
I tried:

  • Create a bad CronWorkflow using kubectl it does not replace it with the one you linked.
  • Create a bad CronWorkflow using argo cli it just reports it as bad, does not submit it and does not replace it
  • Create a bad CronWorkflow using the web userinterface it reports it as bad in the user interface and does not submit it and does not replace it

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity and needs more information. It will be closed if no further activity occurs.

@github-actions github-actions bot added the problem/stale This has not had a response in some time label Oct 19, 2024
@tooptoop4

This comment was marked as spam.

@agilgur5
Copy link
Member

agilgur5 commented Oct 19, 2024

run every minute

This is also intentional for an example, so that you can easily see it run due to its quick schedule

@github-actions github-actions bot removed problem/stale This has not had a response in some time problem/more information needed Not enough information has been provide to diagnose this issue. labels Oct 20, 2024
@agilgur5 agilgur5 added problem/stale This has not had a response in some time problem/more information needed Not enough information has been provide to diagnose this issue. labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cron-workflows problem/more information needed Not enough information has been provide to diagnose this issue. problem/stale This has not had a response in some time type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants