waitForJob

On this page
Back to index

Summary

Waits until the specified job reaches a given status or the timeout expires. This command is only supported with ec-perl.

jobId
Stringrequired

The job to wait for. include::partial$job-id.adoc[]

timeout
Integeroptional

The number of seconds to wait before giving up on a request. The default is 60 seconds.

finalStatus
Stringoptional
The status to wait for. Must be either running or completed (the default is completed).

Usage

Perl

$cmdr->waitForJob( "test-jobId" # jobId # optionals );

ectool

ectool waitForJob \ "test-jobId" `# jobId` \ # optionals