rservicebus 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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: