webCOMAND

io_comand_systemtask Configuration

Common updates to the io_comand_systemtask configuration in config.php are:

<?php
/**
 * Defines configuration parameters for how the daemon behaves and how
 * System Tasks are limited.
 */
$config = [
    'daemon' => [
        // disable scheduled tasks from running
        'scheduled_tasks_enabled' => FALSE
    ],
    'tasks' => [
        // maximum simultaneous System Tasks to allow before queuing
        'max_running_tasks' => 6
    ]
];

Daemon

The defaults configuration file is located in packages/io_comand_process/config/daemon.php.  The defaults can be overridden in config.php like:

  • user - The user that the daemon and all spawned tasks will run as. Specify as USER:GROUP.  Default is 'webcomand:publisher'.
  • cancel_delay - The number of seconds between when a task is marked as CANCELING and when the daemon will forcibly kill it if it hasn't already canceled itself.  Default is 300.
  • orphan_delay - The number of seconds after which a running task will be checked for 'orphaned' status. Make this long enough that the task has a chance to start to begin with.  Default is 30.
  • scheduled_tasks_enabled - Set to false to prevent the daemon from initiating any scheduled tasks.  NOTE: This will not take effect until the daemon is restarted.
<?php
/**
 * Defines configuration parameters for for how the daemon behaves.
 */
$config = [
    'user' => 'apache:apache',
    'cancel_delay' => 900,
    'orphan_delay' => 30,
    'scheduled_tasks_enabled' => FALSE
];

Tasks

The defaults configuration file is located in packages/io_comand_process/config/tasks.php.  The defaults can be overridden in config.php like:

  • max_running_tasks - The maximum number of tasks that can be running at a time. This includes Service tasks. If negative, no limit.
<?php
/**
 * Defines configuration parameters for how System Tasks are limited.
 */
$config = [
    'max_running_tasks' => 6
];