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 · 1 comment
Open
3 of 4 tasks

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

tooptoop4 opened this issue Oct 3, 2024 · 1 comment
Labels
area/cron-workflows problem/more information needed Not enough information has been provide to diagnose this issue. 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

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. type/bug
Projects
None yet
Development

No branches or pull requests

3 participants