naf 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,20 +8,17 @@ module Logical::Naf::ConstructionZone
8
8
  end
9
9
 
10
10
  def enqueue(work_order)
11
- limited = false
12
11
  unless work_order.enqueue_backlogs
13
12
  if limited_by_run_group?(work_order.application_run_group_restriction,
14
13
  work_order.application_run_group_name,
15
14
  work_order.application_run_group_limit)
16
- limited = true
17
15
  logger.warn "work order limited by run queue limits #{work_order.inspect}"
16
+ return nil
18
17
  end
19
18
  end
20
- unless limited
21
- @proletariat.create_job(work_order.historical_job_parameters,
22
- work_order.historical_job_affinity_tab_parameters,
23
- work_order.historical_job_prerequisite_historical_jobs)
24
- end
19
+ @proletariat.create_job(work_order.historical_job_parameters,
20
+ work_order.historical_job_affinity_tab_parameters,
21
+ work_order.historical_job_prerequisite_historical_jobs)
25
22
  end
26
23
 
27
24
  def limited_by_run_group?(application_run_group_restriction, application_run_group_name, application_run_group_limit)
@@ -250,7 +250,8 @@ module Process::Naf
250
250
  logger.warn "child pid: #{pid}, status: #{status.inspect}, not managed by this runner"
251
251
  end
252
252
  rescue ActiveRecord::ActiveRecordError => are
253
- raise
253
+ logger.error escape_html("Failure during cleaning up of dead child with pid: #{pid}")
254
+ logger.error escape_html("#{are.message}")
254
255
  rescue StandardError => e
255
256
  # XXX just incase a job control failure -- more code here
256
257
  logger.error "some failure during child clean up"
@@ -1,3 +1,3 @@
1
1
  module Naf
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -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 = '2013-10-14'
11
+ s.date = '2013-12-12'
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"
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: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-10-14 00:00:00.000000000 Z
15
+ date: 2013-12-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails