registerWithContext

abstract fun registerWithContext(taskId: String, block: suspend TaskExecutionContext.() -> Unit)

Registers a handler that receives a TaskExecutionContext with the task ID, retry count, payload, and tags at execution time.