Node.js - job()

Creates a new Batch Job.

import { job } from '@nitric/sdk'

const analyze = job('analyze')

Parameters

  • Name
    name
    Required
    Required
    Type
    string
    Description

    The unique name of this Batch Job within the app. Subsequent calls to job with the same name will return the same object.

Examples

Create a Job

import { job } from '@nitric/sdk'

const analyze = job('analyze')

Create a Job with permissions to submit jobs

import { job } from '@nitric/sdk'

const analyze = job('analyze').allow('submit')