example5.rb

Example 5 - Andreas Schröder, 07/12/2007 01:51 am

Download (159 Bytes)

 
1
#!/usr/bin/ruby
2

    
3

    
4
require 'libdrqueue'
5

    
6

    
7
puts "Master: #{ENV["DRQUEUE_MASTER"]}\n"
8

    
9
job = Libdrqueue::Job.new()
10
job.name = "Test job 123"
11
job.send_to_queue()
12