Dart - job()

Creates a new Batch Job.

import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.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 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze");

Create a Job with permissions to submit jobs

import 'package:nitric_sdk/nitric.dart';
final analyze = Nitric.job("analyze").allow([JobPermission.submit]);
Last updated on Nov 28, 2024