Puppet Class: profile::quarry::celeryrunner

Defined in:
modules/profile/manifests/quarry/celeryrunner.pp

Overview

Class: profile::quarry::celeryrunner

Runs queries submitted via celery

Parameters:

  • clone_path (Any) (defaults to: hiera('profile::quarry::base::clone_path'))
  • venv_path (Any) (defaults to: hiera('profile::quarry::base::venv_path'))


4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/quarry/celeryrunner.pp', line 4

class profile::quarry::celeryrunner(
    $clone_path = hiera('profile::quarry::base::clone_path'),
    $venv_path = hiera('profile::quarry::base::venv_path'),
) {
    require ::profile::quarry::base

    celery::worker { 'quarry-worker':
        app             => 'quarry.web.worker',
        working_dir     => $clone_path,
        celery_bin_path => "${venv_path}/bin/celery",
        user            => 'quarry',
        group           => 'quarry',
    }
}