Jobs

Jobs are for scheduled execution of Automation Tasks and Workflows. Jobs can be set to execute on a schedule and/or execute manually. Jobs are linked to existing Tasks or Workflows, and allow for custom config options. Jobs can be associated with Instances, Servers, or have no association, such as a job for an ssh task.

Jobs allow for scheduled execution of essentially anything, as Tasks Types include bash, powershell, http/api, ansible, chef, puppet, groovy, python, jRuby, javascript, and library scripts and templates, which can be configured for resource, remote or local execution targets. Aka if you need something to execute on a schedule, Morpheus Jobs can deliver.

Jobs are configured in the JOBS tab, and the JOB EXECUTIONS tab contains Job execution history with result output.

Jobs

Role Permissions

Provisioning: Jobs
None
Cannot access Provisioning: Jobs : Jobs
Read
Can access Provisioning: Jobs: Jobs but cannot create, edit or delete Jobs
Full
Full permissions to create, edit and delete Jobs
Provisioning: Job Executions
None
Cannot access Provisioning: Jobs : Job Executions
Read
Can access and view Provisioning: Jobs : Job Executions including job execution history, status and Job output

Creating Jobs

Note

Jobs require existing Tasks or Workflows

To create a new job:

  1. Navigate to Provisioning: Jobs

  2. Select + ADD

  3. Enter the following

    NAME

    Name of the Job in Morpheus

    JOB TYPE
    Task Job

    Executes selected Task on Job schedule.

    Workflow Job

    Executes seclude Workflow on Job schedule.

  4. Select NEXT

  5. Configure the Job

    Task Jobs
    Job Configuration
    TASK

    Select target Task

    CUSTOM CONFIG

    Specify custom config for task execution (not required)

    Execution Config
    SCHEDULE
    manual

    Job will not be executed on a schedule. Job can be executed fro Provisioning: Jobs and selecting Actions -> Execute

    Schedules

    Available Execution Schedules will populate.

    Note

    Morpheus provides two system default execution schedules, Daily at Midnight and Weekly on Sunday at Midnight. Additional schedules can be added in Provisioning -> Automation -> Execute Scheduling

    RUN NOW

    Select the checkbox for the job to execute upon save, regardless of SCHEDULE setting.

    Workflow Jobs
    Job Configuration
    WORKFLOW

    Select target Workflow

    CUSTOM CONFIG

    Specify custom config for Workflow execution (not required)

    Execution Config
    SCHEDULE
    manual

    Job will not be executed on a schedule. Job can be executed fro Provisioning: Jobs and selecting Actions -> Execute

    Schedules

    Available Execution Schedules will populate.

    Note

    Morpheus provides two system default execution schedules, Daily at Midnight and Weekly on Sunday at Midnight. Additional schedules can be added in Provisioning -> Automation -> Execute Scheduling

    RUN NOW

    Select the checkbox for the job to execute upon save, regardless of SCHEDULE setting.

Job Executions