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
When I use pulse.every, setting endDate has no effect. I set both startDate and endDate, but only startDate has an effect, and the task will continue to execute after the set endDate time has passed.
Code example
importPulsefrom"@pulsecron/pulse";constmongoConnectionString='****';constpulse=newPulse({db: {address: mongoConnectionString}});pulse.define("raintrip",async(job)=>{console.log("raintrip job running");return;},{shouldSaveResult: true,attempts: 4,backoff: {type: "exponential",delay: 1000},});(asyncfunction(){// IIFE to give access to async/awaitawaitpulse.start();// Alternatively, you could also do:awaitpulse.every("* * * * *","raintrip",{timezone: "Asia/Shanghai",startDate: newDate("2024-11-26T20:20:00"),endDate: newDate("2024-11-26T20:25:00"),});
Additional context
"@pulsecron/pulse": "^1.6.7"
The text was updated successfully, but these errors were encountered:
Description
When I use pulse.every, setting endDate has no effect. I set both startDate and endDate, but only startDate has an effect, and the task will continue to execute after the set endDate time has passed.
Code example
Additional context
"@pulsecron/pulse": "^1.6.7"
The text was updated successfully, but these errors were encountered: