Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Return list of alive job ids in info response.
Browse files Browse the repository at this point in the history
Change-Id: Ie67a1c3964a31c2f50ebab3437c4b53b9f506cd2
  • Loading branch information
Kowshik Prakasam committed Oct 31, 2012
1 parent e158508 commit be42aec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions warden-protocol/lib/warden/protocol/info.rb
Expand Up @@ -74,6 +74,8 @@ class BandwidthStat < BaseMessage
optional :cpu_stat, CpuStat, 41
optional :disk_stat, DiskStat, 42
optional :bandwidth_stat, BandwidthStat, 43

repeated :job_ids, :uint64, 44
end
end
end
2 changes: 1 addition & 1 deletion warden-protocol/lib/warden/protocol/version.rb
Expand Up @@ -2,6 +2,6 @@

module Warden
module Protocol
VERSION = "0.0.9"
VERSION = "0.0.10"
end
end
9 changes: 9 additions & 0 deletions warden-protocol/spec/info_spec.rb
Expand Up @@ -113,4 +113,13 @@
subject.should be_valid
end
end

field :job_ids do
it_should_be_optional

it "should allow one or more job ids" do
subject.job_ids = [1, 2]
subject.should be_valid
end
end
end

0 comments on commit be42aec

Please sign in to comment.