When a task is executed, could we execute it with an optional "intent"? This would be similar to Android's activity semantics.
Using this, we could know in the task WHY the task was executed. For example:
- We could be returning to a task because of a timeout
- We could be returning to a task because another task failed (or an external system failed, like a Puppet run)
- We could be returning to a task because something good happened (task success)
Right now, the only way we could know is by querying somewhere to find out the reason why the task was executed.
When a task is executed, could we execute it with an optional "intent"? This would be similar to Android's activity semantics.
Using this, we could know in the task WHY the task was executed. For example:
Right now, the only way we could know is by querying somewhere to find out the reason why the task was executed.