Skip to content

Cron syntax does not follow standard cron spec #629

@paymand

Description

@paymand

Problem:

If we need to specify a job to run on a specific month, e.g. using mendRnvCronJobSchedulerAll, we cannot use the normal cron spec where months start at 1, instead 0 is actually January. So the cron schedule syntax diverges from the standard cron spec.

Suggested solution:

I investigated a bit and it looks like the current version of cron used by latest https://github.com/mend/renovate-ce-ee/pkgs/container/renovate-ce is v2:

ubuntu@renovate-mend-renovate-ce-78c9f58bd6-28pws:/usr/src/app$ npm ls cron
app@ /usr/src/app
└── [email protected]

and this version does not follow normal cron spec due to the following issue in node-cron:
kelektiv/node-cron#475

The fix is released in node-cron@v3. Would be great to update to v3 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions