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
@elvispdosreis I am not sure I am following, you have 2 tasks running, you want one of the two to run only once, is that correct? And the second currently gets executed multiple times even though you are calling the onlyOne?
Just keep in mind that because you're using Closures, your tasks will run synchronously, so the second one will run after the first one is complete. My suggestion would be to call external scripts and schedule those external scripts so they can both run asynchronously.
To recap:
check if the lock files are being generated correctly
use a custom identifier
move your code to external scripts and have the scheduler just to deal with executing async those script
this task will always be performed
I need the task to run only once until the end of the execution, even if the scheduler is called, this task should not be executed, before it ends
as it is today, it is always executed.
The text was updated successfully, but these errors were encountered: