Main Content

pause

Pause MATLAB Job Scheduler queue

Description

pause(mjs) pauses the processing of jobs in the queue of the MATLAB® Job Scheduler cluster represented by the parallel.cluster.MJS object mjs. Jobs waiting in the queued state do not run. Jobs that are already running are paused after completion of tasks that are already running. No further jobs or tasks run until you call the resume function for the cluster.

If the MATLAB Job Scheduler is already paused, the pause function has no effect.

example

Examples

collapse all

This example shows how to pause processing the jobs in the queue of a MATLAB Job Scheduler cluster.

Create a cluster object that represents the MATLAB Job Scheduler cluster with the cluster profile MJS_profile.

c = parcluster(MJS_profile);

Pause the cluster queue.

pause(c);

To resume processing the jobs in the cluster queue, use the resume function.

resume(c);

Input Arguments

collapse all

MATLAB Job Scheduler cluster, specified as a parallel.cluster.MJS cluster object.

Version History

Introduced before R2006a