DataZen Documentation
DataZen User Guide

WAITFOR

Overview

This operation pauses the execution of the pipeline for the number of seconds specified; a positive value is expected.

If the delay specified is longer than the overall execution timeout a timeout error will be thrown.

Be aware that when this command is used with a cloud agent, pausing the execution does not pause billing or consumption metrics.

Syntax

Pauses execution of the current pipeline for a few seconds.

WAITFOR 
	DELAY < N | '...' >;

DELAY

The duration in seconds to use for pausing the execution the pipeline; must be a positive integer value

Example 1

DECLARE @project = 'Operational DevOps';
DECLARE @epic = 'Operational Pipelines Epic';

START 'DEVOPS - Create Epic' PARAMS 'project=@project&epic=@epic';

WAITFOR DELAY 2;

START 'DEVOPS - Create Features and Stories' PARAMS 'project=@project&epic=@epic';

WAITFOR DELAY 1;

PRINT 'Operation Completed';