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 = "Pipeline \#{pipeline_id} did not finish in a timely fashion.\n\n\#{pipeline_runner.max_attempts} attempts were made with a \#{pipeline_runner.delay} seconds delay between each attempts.\n\nYou  either can try to:\n    - Increase the max attempts count.\nBeware of the API rate limit, specially\nif you have many applications and pipelines\nunder the same account.\n    - the delay between each attempts\n    - or both\n\nGood Luck!\n"
  super(msg)
end