Module: Rukawa
- Defined in:
- lib/rukawa.rb,
lib/rukawa/cli.rb,
lib/rukawa/dag.rb,
lib/rukawa/job.rb,
lib/rukawa/errors.rb,
lib/rukawa/runner.rb,
lib/rukawa/job_net.rb,
lib/rukawa/version.rb,
lib/rukawa/abstract_job.rb,
lib/rukawa/configuration.rb
Defined Under Namespace
Modules: State
Classes: AbstractJob, Cli, Configuration, Dag, DependentJobFailure, Job, JobNet, Runner
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
17
18
19
|
# File 'lib/rukawa.rb', line 17
def config
Configuration.instance
end
|
13
14
15
|
# File 'lib/rukawa.rb', line 13
def configure
yield config
end
|
.executor ⇒ Object
21
22
23
|
# File 'lib/rukawa.rb', line 21
def executor
@executor ||= Concurrent::FixedThreadPool.new(config.concurrency)
end
|
.logger ⇒ Object
5
6
7
|
# File 'lib/rukawa.rb', line 5
def logger
@logger ||= Logger.new(config.log_file)
end
|
.store ⇒ Object
9
10
11
|
# File 'lib/rukawa.rb', line 9
def store
@store ||= Concurrent::Hash.new
end
|