Replies: 1 comment
-
I found another way |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a schedule that will only execute once, so I set cron and cronOptions both.
As shown in test-schedule.js, I set endDate as a restriction. But the task continues to log even it is outdated.
So I checked source code in egg-schedule and I found that egg-schedule/lib/strategy/timer.js does not handle
done
property exposed by cron-parserThat's why cronOptions.endDate fails to work.
Beta Was this translation helpful? Give feedback.
All reactions