Function: sys.sleep_until

Suspends execution until the given time.

The latest allowed time is one year from now.

Arguments

Arguments
time Timestamp in ISO 8601 format until which execution is suspended, up to a microsecond precision.

Raised exceptions

Exceptions
TypeError If time is not a string.
ValueError If time is not ISO 8601-compatible.

Examples

# Pause execution of workflow until May 8, 2024 at 1:22:58 PM UTC
# For example, returns "2024-05-08T13:22:58.120062Z"
- pauseWorkflow:
    call: sys.sleep_until
    args:
        time: "2024-05-08T13:22:58Z"
- returnStep:
    return: ${time.format(sys.now())}