-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
priority: normalThe issue/PR is normal priority—not many people are affected or there’s a workaround, etc.The issue/PR is normal priority—not many people are affected or there’s a workaround, etc.type: bugThe issue is a confirmed bug.The issue is a confirmed bug.
Description
On the Usage page there is an example of how to "schedule a function to run at midnight if it is not already scheduled". See here
https://actionscheduler.org/usage/
I have used this example to create an action that runs every minute, and only one gets scheduled. However, every once in a while I check on the scheduled actions and there are two of those running. My guess is that there must be a race condition two requests are running at the same time and end up scheduling two upcoming actions. They then stay in perpetuity.
What is the best way to keep this from happening?
lkraav and stormcrow85
Metadata
Metadata
Assignees
Labels
priority: normalThe issue/PR is normal priority—not many people are affected or there’s a workaround, etc.The issue/PR is normal priority—not many people are affected or there’s a workaround, etc.type: bugThe issue is a confirmed bug.The issue is a confirmed bug.