naf 2.1.11 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -39,9 +39,3 @@ Machines have an allocate-able number of slots of a specific affinity. Applicati
|
|
39
39
|
|
40
40
|
=== Tags
|
41
41
|
Scripts have tags to describe the stage/progress of the process. They can be system or custom tags. All tags are visible by the user, so set tags at different stages of your script. This is a way of knowing what is happening in the script without having to take a look at the logs.
|
42
|
-
|
43
|
-
=== Please find up-to-date information on Naf here: {Naf Wiki}[http://www.github.com/fiksu/naf/wiki]
|
44
|
-
=== Instructions on upgrading to Naf v2.1.9: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-from-Naf-v2.1.6-to-Naf-v2.1.9]
|
45
|
-
=== Instructions on upgrading to Naf v2.1.6: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v2.1.6]
|
46
|
-
=== Instructions on upgrading to Naf v2.0: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v2.0]
|
47
|
-
=== Instructions on upgrading to Naf v1.1.4: {Instructions}[https://github.com/fiksu/naf/wiki/Upgrading-to-Naf-v1.1.4]
|
data/RELEASE_NOTES.rdoc
CHANGED
@@ -14,7 +14,8 @@ module Logical::Naf::ConstructionZone
|
|
14
14
|
priority = 0,
|
15
15
|
affinities = [],
|
16
16
|
prerequisites = [],
|
17
|
-
enqueue_backlogs = false
|
17
|
+
enqueue_backlogs = false,
|
18
|
+
application_schedule = nil)
|
18
19
|
work_order = ApplicationWorkOrder.new(application,
|
19
20
|
application_run_group_restriction,
|
20
21
|
application_run_group_name,
|
@@ -22,7 +23,8 @@ module Logical::Naf::ConstructionZone
|
|
22
23
|
priority,
|
23
24
|
affinities,
|
24
25
|
prerequisites,
|
25
|
-
enqueue_backlogs
|
26
|
+
enqueue_backlogs,
|
27
|
+
application_schedule)
|
26
28
|
@foreman.enqueue(work_order)
|
27
29
|
end
|
28
30
|
|
@@ -54,7 +56,8 @@ module Logical::Naf::ConstructionZone
|
|
54
56
|
application_schedule.priority,
|
55
57
|
application_schedule.affinities,
|
56
58
|
prerequisite_jobs,
|
57
|
-
application_schedule.enqueue_backlogs
|
59
|
+
application_schedule.enqueue_backlogs,
|
60
|
+
application_schedule)
|
58
61
|
end
|
59
62
|
|
60
63
|
def enqueue_rails_command(command,
|
data/lib/naf/version.rb
CHANGED
data/naf.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.name = 'naf'
|
9
9
|
s.version = Naf::VERSION
|
10
10
|
s.license = 'New BSD License'
|
11
|
-
s.date = '2014-
|
11
|
+
s.date = '2014-05-05'
|
12
12
|
s.summary = 'Creates infrastructure for a customizable and robust Postgres-backed script scheduling/running'
|
13
13
|
s.description = 'A cloud based distributed cron, application framework and operations console. Naf works as a distributed script running ' +
|
14
14
|
'system that provides scheduling, logging, alarming, machine redundancy, and the ability to set constraint during script execution'
|
@@ -78,7 +78,8 @@ module Logical::Naf::ConstructionZone
|
|
78
78
|
end
|
79
79
|
|
80
80
|
describe '#enqueue_application_schedule' do
|
81
|
-
let!(:
|
81
|
+
let!(:schedule) { FactoryGirl.create(:schedule) }
|
82
|
+
let!(:job) { boss.enqueue_application_schedule(schedule) }
|
82
83
|
|
83
84
|
it_should_behave_like 'create one historical job', 1
|
84
85
|
|
@@ -89,6 +90,10 @@ module Logical::Naf::ConstructionZone
|
|
89
90
|
|
90
91
|
::Naf::HistoricalJob.should have(3).records
|
91
92
|
end
|
93
|
+
|
94
|
+
it 'assign application_schedule_id correctly' do
|
95
|
+
job.application_schedule_id.should == schedule.id
|
96
|
+
end
|
92
97
|
end
|
93
98
|
|
94
99
|
describe '#enqueue_rails_command' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|