Giter Club home page Giter Club logo

Comments (1)

agilgur5 avatar agilgur5 commented on June 3, 2024

Note: I did check that the controller cron package we use is unmaintained with no new commits landing to the default branch or releases in the last four years: https://isitmaintained.com/project/robfig/cron. Maybe upgrading to a new package would solve

It's the same library that k8s CronJobs use and is well known as unmaintained, see #8348 as I linked in the Slack thread. They used this approach because of that issue.

We would expect the next scheduled time to be in however many days to the first Tuesday of the month, but we're seeing that it shows as being scheduled the Tuesday of this week:

Per Slack thread, the next scheduled time is the same in the CLI and UI so is not a UI-only bug.

Also per thread, this syntax may be considered non-standard due to buggy implementations per https://crontab.guru/tips.html (tip 1) and https://crontab.guru/cron-bug.html, the "if" part of the cron syntax is a bit wacky.
As such, I'm not sure I'd consider this a bug, since an implementation might intentionally do that to match. Note that per the thread, both the UI and the CLI had the same next run, so that would explain why they're equivalent despite the UI's cron library supporting some non-standard syntax.

To be exact for better readability + accessibility and searchability:

  • Cron Expression: 0 4 */100,1-7 * TUE, https://crontab.guru/#0_4_*/100,1-7_*_TUE
  • Crontab.guru human-readable: "At 04:00 on every 100th day-of-month and every day-of-month from 1 through 7 if it's on Tuesday.” (emphasis mine)
    • Next run is the first Tuesday of next month: 2024-06-04 04:00:00
  • Workflows UI human-readable: "At 04:00 AM, every 100 days and 1 through 7, and on Tuesday" (emphasis mine)
    • Next run is next Tuesday this month: 2024-05-13 04:00:00 ("14h8m")
    • Workflows CLI does not have human-readable text, but does show next run same as the UI: 2024-05-13 04:00:00 ("14h8m")

from argo-workflows.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.