simple_worker 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/test/test_simple_worker.rb +3 -1
  2. metadata +3 -3
@@ -31,10 +31,12 @@ class SimpleWorkerTests < Test::Unit::TestCase
31
31
  # task set
32
32
  response_hash = @worker.queue("TestWorker", [{"id"=>"local_id", "s3_key"=>"some key", "times"=>4}, {"s3_key"=>"some key2", "times"=>3}, {"s3_key"=>"some key", "times"=>2}])
33
33
 
34
- # # Check status
34
+ # Check status
35
35
  tasks = response_hash["tasks"]
36
+ puts 'tasks.size=' + tasks.size.to_s
36
37
  while tasks.size > 0
37
38
  tasks.each do |t|
39
+ puts "t=" + t.inspect
38
40
  status_response = @worker.status(t["task_id"])
39
41
  puts 'status for ' + t["task_id"] + ' = ' + status_response["status"]
40
42
  if status_response["status"] == "complete" || status_response["status"] == "error" || status_response["status"] == "cancelled"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Reeder
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-16 00:00:00 -07:00
17
+ date: 2010-04-17 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency