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表达式为 * * * * * ? * 时,报错 #243

Open
Grapelllar opened this issue May 29, 2023 · 1 comment
Open

当cron表达式为 * * * * * ? * 时,报错 #243

Grapelllar opened this issue May 29, 2023 · 1 comment

Comments

@Grapelllar
Copy link

this is my code:

timers[quartzJob.dynamicQuartz[key].id] = later.setInterval(
async () => { await runQuartzJob(quartzJob.dynamicQuartz[key]); },
later.parse.cron(quartzJob.dynamicQuartz[key].cron, true)
);

[2023-05-29T16:42:33.600] [DEBUG] [lib/module/quartz-server] what is parse cron * * * * * ? *
[2023-05-29T16:42:33.601] [DEBUG] [lib/module/quartz-server] what is parse cron { schedules: [ {} ], exceptions: [] }
[2023-05-29T16:42:33.601] [ERROR] [lib/module/quartz-server] Cannot read property 'constraint' of undefined 执行定时任务失败,查询数据库quartz失败:batch-job
TypeError: Cannot read property 'constraint' of undefined
at Object.later.compile (E:\Project\star-net\bimon-middleplatform-server\node_modules\later\later.js:573:54)
at Object.later.schedule (E:\Project\star-net\bimon-middleplatform-server\node_modules\later\later.js:626:28)
at Object.later.setTimeout (E:\Project\star-net\bimon-middleplatform-server\node_modules\later\later.js:810:19)
at Object.setInterval (E:\Project\star-net\bimon-middleplatform-server\node_modules\later\later.js:843:19)
at runQuartzJob (E:\Project\star-net\bimon-middleplatform-server\lib\module/quartz-server.js:84:59)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Object. (E:\Project\star-net\bimon-middleplatform-server\lib\module/quartz-server.js:125:17)

@MiaomiaoFanny
Copy link

MiaomiaoFanny commented May 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants