Skip to main content

Add Task

Add a task to a job

Syntax

alter job <job reference> add [finalizer] task <task spec>

alter job <job reference> add [finalizer] { magpie | scala | python } script task <task spec>
with script """<script>"""

alter job <job reference> add [finalizer] sql mapper task <task spec>
with sql """<sql>"""

alter job <job reference> add [finalizer] nested job task <task spec>
with nested job <nested job reference>

Parameters

job reference

String — Name of the job to add a task to, optionally qualified by project.

task spec

JSONDefinition of the new task.

script

String — The script text for a Magpie, Scala, or Python script task.

sql

String — The SQL query for a SQL mapper task.

nested job reference

String — Name of the job to link to a nested job task, optionally qualified by a project.