Skip to main content
Version: Current

Job.SuspendJobAsync

Description​

Suspends the job with specified SuspendedJobInfo details from the connected AI Command Center.

Signature [C#]​

Task SuspendJobAsync(SuspendedJobInfo suspendedJobInfo, string persistenceFilePath);

Properties​

Input​

ParameterTypeRequired / defaultDescription
suspendedJobInfoSuspendedJobInfoRequiredSpecify the information to suspend the job.
persistenceFilePathstringRequiredSpecify the persistence file path.

Remarks​

Use SuspendJobAsync API to suspend the job with specified SuspendedJobInfo from the connected AI Command Center.

Example​

The caller supplies the job suspension details and persistence file required by the SDK.

public async Task SuspendJobAsync(IControlRoomContext context, SuspendedJobInfo suspendedJobInfo, string persistenceFilePath)
{
await context.Jobs.SuspendJobAsync(suspendedJobInfo, persistenceFilePath);
}

Use the persistence file produced by the relevant workflow; do not substitute an arbitrary empty file. See SDK usage for failure handling.