forked from dell-asm/razor-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
torquebox.rb
33 lines (30 loc) · 917 Bytes
/
torquebox.rb
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
# Configure TorqueBox global settings for our application.
#
# You can override this with your deployment descriptor outside this
# application; these establish our default, supported, configuration.
TorqueBox.configure do
ruby do
version '1.9'
compile_mode 'jit'
interactive false
end
web do
context '/'
rackup 'config.ru'
end
# Deploy the queue for our internal sequel instance messaging.
queue '/queues/razor/sequel-instance-messages' do
processor Razor::Messaging::Sequel do
concurrency 4
# For the moment, no XA support in these handlers.
xa false
end
end
# The naming is because we want the filename to be `ipmi.rb`.
job Razor::ScheduledJobs::Ipmi do
description 'IPMI power state poller'
cron '0 */5 * * * ?'
# Only run on one node across a cluster, if you set one up.
singleton true
end
end