/
backgroundrb.yml
48 lines (44 loc) · 1.87 KB
/
backgroundrb.yml
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
---
:backgroundrb:
:ip: 0.0.0.0
:port: 11006
:log: foreground # foreground mode,print log messages on console
# :environment: production
:development:
:backgroundrb:
:log: foreground
# turn this off if your application doesn't use backgroundrb's persistent/enqueued tasks system
:persistent_disabled: false
# the time (seconds) between
:persistent_delay: 20
# foreground mode,print log messages on console
:production:
:backgroundrb:
# :port: 22222 # use port 22222
:lazy_load: true # do not load models eagerly
:debug_log: false # disable log workers and other logging
:schedules:
:fetch_worker:
:arch:
:trigger_args: * * */1 * * * *
# :backgroundrb:
# :ip: 0.0.0.0 #ip on which backgroundrb server is running
# :port: 11006 #port on which backgroundrb server is running
# :environment: production # rails environment loaded, defaults to development
# :debug_log: true # whether to print debug logs to a seperate worker, defaults to true
# :log: foreground # will print log messages to STDOUT, defaults to seperate log worker
# :result_storage: memcache # store results in a mecache cluster, you also need to specify location of your memcache clusters in next section
#
# :memcache: "10.0.0.1:11211,10.0.0.2:11211" #=> location of mecache clusters seperated by comma
#
# # following section is totally optional, and only useful if you are trying to cluster of backgroundrb server
# # if you do not specify this section backgroundrb will assume that, from rails you are connecting to the
# # backgroundrb server which has been specified in previous section
# :client: "10.0.0.1:11006,10.0.0.2:11007"
#
# # You specify your worker schedules here
# :schedules:
# :foo_worker: # worker name
# :barbar: #worker method
# :trigger_args: */5 * * * * * * #worker schedule
# cheduling section