The number of seconds the execution should be suspended for.
Examples
# Poll API until job status is completemain:params:[jobId]steps:-getJob:# get job statuscall:http.getargs:url:${"https://example.com/jobs/" + jobId}auth:type:OAuth2result:jobStatus-checkIfDone:# check job statusswitch:-condition:${jobStatus.complete}return:${jobStatus}# stop polling-wait:call:sys.sleepargs:seconds:60# wait 60 secondsnext:getJob
[[["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 2025-08-28 UTC."],[],[],null,["# Function: sys.sleep\n\nSuspends execution for the given number of seconds.\n\nMaximum is 31536000 (one year).\n\nFor more information, see\n[Wait using polling](https://cloud.google.com/workflows/docs/sleeping).\n\nArguments\n---------\n\nExamples\n--------\n\n```yaml\n# Poll API until job status is complete\nmain:\n params: [jobId]\n steps:\n - getJob: # get job status\n call: http.get\n args:\n url: ${\"https://example.com/jobs/\" + jobId}\n auth:\n type: OAuth2\n result: jobStatus\n - checkIfDone: # check job status\n switch:\n - condition: ${jobStatus.complete}\n return: ${jobStatus} # stop polling\n - wait:\n call: sys.sleep\n args:\n seconds: 60 # wait 60 seconds\n next: getJob\n```"]]