rservicebus 0.0.53 → 0.0.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rservicebus/MQ/Beanstalk.rb +6 -0
  2. 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}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rservicebus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.53
4
+ version: 0.0.54
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: