[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/workflows/docs/reference/stdlib/sys/sleep_until [Back]  [Original]

Function: sys.sleep_until  |  Workflows  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Function: sys.sleep_until Stay organized with collections Save and categorize content based on your preferences.

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())}
Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page