You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently added this scheduler to a project, where we want to run a schedule every 30 days. In testing, SimpleIntervalJob Would run on server startup with runImmediately. When we changed to LongIntervalJob with the same settings, the task no longer runs on scheduler start.
I recently added this scheduler to a project, where we want to run a schedule every 30 days. In testing,
SimpleIntervalJob
Would run on server startup withrunImmediately
. When we changed toLongIntervalJob
with the same settings, the task no longer runs on scheduler start.We are using fastify-schedule, which is a wrapper for toad-scheduler. Here is the relevant startup code:
https://github.com/laxamentumtech/audnexus/blob/9e5dd5492c8a00e29791c3f53389ebf2d1739c68/src/server.ts#L124C1-L129
and the LongInterval code:
https://github.com/laxamentumtech/audnexus/blob/9e5dd5492c8a00e29791c3f53389ebf2d1739c68/src/helpers/utils/UpdateScheduler.ts#L120-L129
If we change the functions back to
SimpleIntervalJob
without changing anything else, the task runs immediately.EDIT:
Upon further testing, if we change the interval from
{ days: 30, runImmediately: true }
->
{ days: 24, runImmediately: true }
,the task does run immediately while using
LongIntervalJob
The text was updated successfully, but these errors were encountered: