Skip to content

[Bug]: Problem with cron intervals #3252

@armpogart

Description

@armpogart

Version

v5.51.0

Platform

NodeJS

What happened?

cron-parser that is used for cron expressions parsing has a bug parsing some interval expressions (harrisiirak/cron-parser#156), so the bullmq also creates incorrect repeatable jobs in those cases.

The mentioned bug is fixed in newer versions (major version upgrade) of cron-parser. So the dependency of bullmq needs to be updated either. There is a breaking change (renamed function) in newer version of cron-parser which is trivial to change in bullmq also. Other than that, as far as I see, the new version will have same behavior for the bullmq usage.

How to reproduce.

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions