Exception: WerckerAPI::PipelineRunner::Timeout

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/wercker_api/pipeline_runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(pipeline_id, pipeline_runner) ⇒ Timeout

Returns a new instance of Timeout.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/wercker_api/pipeline_runner.rb', line 5

def initialize(pipeline_id, pipeline_runner)
  msg = <<-EOM
Pipeline #{pipeline_id} did not finish in a timely fashion.

#{pipeline_runner.max_attempts} attempts were made with a #{pipeline_runner.delay} seconds delay between each attempts.

You  either can try to:
    - Increase the max attempts count.
Beware of the API rate limit, specially
if you have many applications and pipelines
under the same account.
    - the delay between each attempts
    - or both

Good Luck!
EOM
  super(msg)
end