scheduling topics
-
How does the built-in scheduling function work? Is there a task that runs periodically and checks for scheduled tasks? I see that scheduled topics are created as 'deleted' topics with a timestamp set to the scheduled time, but I am not clear on which process evaluates them for undeleting.
-
The reason I ask is because I already have a scheduler running for background jobs (bulljs) and I would rather let that handle all scheduled tasks.
It looks like most of the logic is in
Scheduled.startJobs
andScheduled.handleExpired
insrc/topics/scheduled.js
Is that all I need to look at?
Copyright © 2024 NodeBB | Contributors