rservicebus 0.0.53 → 0.0.54
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rservicebus/MQ/Beanstalk.rb +6 -0
- metadata +1 -1
@@ -15,6 +15,12 @@ module RServiceBus
|
|
15
15
|
|
16
16
|
begin
|
17
17
|
@beanstalk = Beanstalk::Pool.new([string])
|
18
|
+
|
19
|
+
current = @beanstalk.stats["max-job-size"]
|
20
|
+
if current < 4194304 then
|
21
|
+
puts "***WARNING: Lowest recommended.max-job-size is 4m, current max-job-size, #{current.to_f / (1024*1024)}m"
|
22
|
+
puts "***WARNING: Set the job size with the -z switch, eg /usr/local/bin/beanstalkd -z 4194304"
|
23
|
+
end
|
18
24
|
rescue Exception => e
|
19
25
|
puts "Error connecting to Beanstalk"
|
20
26
|
puts "Host string, #{string}"
|