Defined Type: celery::worker

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

Overview

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')


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

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