You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

NAME

Update-JobSchedulerJob

SYNOPSIS

Updates a number of jobs in the JobScheduler Master.

SYNTAX

Update-JobSchedulerJob -Job <String> -Action <String> [-Parameters <Hashtable>] [-At <String>] [<CommonParamete
rs>]

DESCRIPTION

Updating jobs includes operations to stop and unstop jobs.

Jobs to be stopped are selected

  • by a pipelined object, e.g. the output of the Get-JobSchedulerJob cmdlet
  • by specifying an individual job with the -Job parameter.

PARAMETERS

Job

-Job <String>
Specifies the path and name of a job that should be updated.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?

Action

-Action <String>
Specifies the action to be applied to stop a task:

  • Action "stop"
    • jobs are stopped immediately. Any running tasks are continued to completion.
    • a stopped job does not execute any tasks. Orders in a job chain wait for stopped jobs to be resumed.
  • Action "unstop"
    • unstops a previously stopped job.

Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?

Parameters

-Parameters <Hashtable>
Specifies the parameters for the job. Parameters are created from a hashmap,
i.e. a list of names and values.

Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?

At

-At <String>
Specifies the point in time when the job should start:

  • now
    • specifies that the job should start immediately
  • now+1800
    • specifies that the job should start with a delay of 1800 seconds, i.e. 30 minutes later.
  • yyyy-mm-dd HH:MMSS
    • specifies that the job should start at the specified point in time.

Default: now

Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?

about_jobscheduler

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

C:\PS>Update-JobSchedulerJob -Job /sos/dailyschedule/CheckDaysSchedule -Action stop

Stops an individual job.

-------------------------- EXAMPLE 2 --------------------------

C:\PS>Get-JobSchedulerJob | Update-JobSchedulerJob -Action unstop

Unstops all jobs that have previously been stopped.

-------------------------- EXAMPLE 3 --------------------------

C:\PS>Get-JobSchedulerJob -Directory /some_dir -NoSubfolders | Update-JobSchedulerJob -Action stop

Stops all jobs from the specified directory
without consideration of subfolders.

  • No labels