Skip to content

Ensure fails with "bad minute" error #1

@DenMesh

Description

@DenMesh
await cronbee.ensure({
        taskName: 'test',
        taskRun: 'echo "test"',
        cron: '* * * * *'
});

This code produces the following error:

Error: "-":23: bad minute
errors in crontab file, can't install.

OS is Debian.

While I wasn't able to trace the error all the way, I have a sneaking suspicion that the culprit is line 363 in scheduler/providers/crontab/CronTab.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions