summaryrefslogtreecommitdiff
path: root/tests/plugins/jobs/beanstalk/.rr-beanstalk-init.yaml
blob: 5ca45b7dfba72df924817f4a0b33840111d736c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
rpc:
  listen: tcp://127.0.0.1:6001

server:
  command: "php ../../client.php echo pipes"
  relay: "pipes"
  relay_timeout: "20s"

beanstalk:
  # beanstalk address
  addr: tcp://localhost:11300
  # connect timeout
  timeout: 10s

logs:
  level: info
  encoding: console
  mode: development

jobs:
  num_pollers: 10
  pipeline_size: 100000
  pool:
    num_workers: 10
    max_jobs: 0
    allocate_timeout: 60s
    destroy_timeout: 60s

  pipelines:
    test-1:
      driver: amqp
      prefetch: 100
      queue: test-1-queue
      priority: 1
      exchange: default
      exchange_type: direct
      routing_key: test-1
      exclusive: false
      multiple_ack: false
      requeue_on_fail: false

    test-2:
      driver: amqp
      prefetch: 100
      queue: test-2-queue
      priority: 2
      exchange: default
      exchange_type: direct
      routing_key: test-2
      exclusive: false
      multiple_ack: false
      requeue_on_fail: false


  # list of pipelines to be consumed by the server, keep empty if you want to start consuming manually
  consume: [ "test-1", "test-2" ]