Hi @BK Lau - from a user perspective, the lifecycle of a task is represented by its state changes; a typical task lifecycle is Pending -> Running -> Success but there are many other paths a run might take. If you’re looking to implement custom logic in between these state changes (or even if you want to force a certain state change) you can implement task-level state handlers as described here: https://docs.prefect.io/core/concepts/notifications.html#state-handlers
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.