Defined Type: celery::worker

Defined in:
modules/celery/manifests/worker.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • app (Any)
  • working_dir (Any)
  • user (Any)
  • group (Any)
  • celery_bin_path (Any) (defaults to: '/usr/bin/celery')
  • log_level (Any) (defaults to: 'ERROR')
  • core_limit (Any) (defaults to: '0')
  • version (Any) (defaults to: 4)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/celery/manifests/worker.pp', line 2

define celery::worker(
    $app,
    $working_dir,
    $user,
    $group,
    $celery_bin_path = '/usr/bin/celery',
    $log_level = 'ERROR',
    $core_limit = '0',
    $version = 4,
) {
    systemd::service { "celery-${title}":
        content => systemd_template('celery'),
        restart => true,
    }
}