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
Usually, tasks are started anonymously with no ID. But, since we have full creative control here, we can just allow users to choose that a task must have a global ID. This does not affect task execution, but what we can do is that, we can save the ID in e.g. the database, and then when we want to, we can just "recreate" the task from the ID and check whether it is still running.
A ULID would be a good random globally-unique ID. Or, the task can have a user-specified constant ID for singleton tasks (i.e. task can only be run with a single instance).
Think about whether this is a good idea.
The text was updated successfully, but these errors were encountered:
Usually, tasks are started anonymously with no ID. But, since we have full creative control here, we can just allow users to choose that a task must have a global ID. This does not affect task execution, but what we can do is that, we can save the ID in e.g. the database, and then when we want to, we can just "recreate" the task from the ID and check whether it is still running.
A ULID would be a good random globally-unique ID. Or, the task can have a user-specified constant ID for singleton tasks (i.e. task can only be run with a single instance).
Think about whether this is a good idea.
The text was updated successfully, but these errors were encountered: