Method: Cloudmunda::Worker::ClassMethods#timeout

Defined in:
lib/cloudmunda/cli/worker.rb

#timeout(timeout) ⇒ Integer

Sets the time in seconds the worker has to process the job before the broker consider it as expired and can schedule it to another worker.

Examples:

class MyWorker
  include ::Cloudmunda::Worker
  timeout 30
end

Parameters:

  • timeout (Integer)

Returns:

  • (Integer)


120
121
122
# File 'lib/cloudmunda/cli/worker.rb', line 120

def timeout(timeout)
  @timeout = timeout
end