The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

task_runner - run a single Disbatch task

VERSION

version 4.102

SYNOPSIS

  task_runner --task 565bc0d43fb6ecd1c8504492 --config etc/disbatch/config.json

ARGUMENTS

--config <string>

Path to the JSON Disbatch config file.

--task <string>

The task's _id. Mandatory.

--gfs [<string>]

Use the custom GridFS implementation to store task stderr and stdout. Default is to store them directly in the task document.

While using GridFS can make analysing task output more complicated, we periodically have output that exceeds the maximum MongoDB document size.

To turn this on for all tasks, add the argument --gfs with no value. To turn it on for tasks with large stdout and stderr, use --gfs auto. Both stdout and stderr will be stored in the task document if they will fit, otherwise stderr will be stored in the task document if it will fit and stdout in GridFS, and finally both with be stored in GridFS if stderr will not fit.

In the config file, this is disabled with "gfs": false, enabled with "gfs": true, and automatic with "gfs": "auto" (Note that automatic is the Disbatch default).

--quiet

Suppress STDOUT and STDERR output at end (mainly for testing).

--testing

Do require lib 'lib'; lib->import('lib'); before require Disbatch;.

SEE ALSO

Disbatch

Disbatch::Web

Disbatch::Roles

Disbatch::Plugin::Demo

disbatchd

disbatch.pl

disbatch-create-users

AUTHORS

Ashley Willis <awillis@synacor.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016, 2019 by Ashley Willis.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004