Skip to main content

Overview

The ctx object provides workflow control methods that help you manage execution timing and optimize resource usage.

Methods

sleep()

Pause execution for a specified duration.
Example:

halt()

Signal to the workflow orchestrator that this column’s result makes all other columns in the row pointless. This helps the system avoid wasted parallel work.
halt() should only be used AFTER expensive operations when the result disqualifies the entire row. Don’t use it for simple validation or early returns.
Example: