Currently the workflow fails when the Schedule-To-Close timeout is triggered for an Activity. Is it possible to catch Schedule-To-Close timeout and handle it (signal another workflow/trigger a different activity to notify in Slack etc.) in the workflow?
Yes, you can catch this in a workflow as an exception from the activity like catching any other exception (it’s an activity error with a cause of timeout error with a timeout type of schedule-to-close).
1 Like
Thank you this works, initially I was running only single worker which executed both worker and activity. My activity had non-async blocking code which caused the workflow to miss the exception.