Class: Resque::Mcp::Models::Failure

Inherits:
Data
  • Object
show all
Defined in:
lib/resque/mcp/models/failure.rb

Overview

One failed-job record. index is the record's mutable position in the Redis failed list, not a stable id. failed_at/retried_at are opaque strings. job is a Models::Job (sealed args); the origin queue lives here, not on the job.

Instance Attribute Summary collapse

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace

Returns:

  • (Object)

    the current value of backtrace



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def backtrace
  @backtrace
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def error
  @error
end

#exceptionObject (readonly)

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def exception
  @exception
end

#failed_atObject (readonly)

Returns the value of attribute failed_at

Returns:

  • (Object)

    the current value of failed_at



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def failed_at
  @failed_at
end

#indexObject (readonly)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def index
  @index
end

#jobObject (readonly)

Returns the value of attribute job

Returns:

  • (Object)

    the current value of job



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def job
  @job
end

#queueObject (readonly)

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def queue
  @queue
end

#retried_atObject (readonly)

Returns the value of attribute retried_at

Returns:

  • (Object)

    the current value of retried_at



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def retried_at
  @retried_at
end

#workerObject (readonly)

Returns the value of attribute worker

Returns:

  • (Object)

    the current value of worker



10
11
12
# File 'lib/resque/mcp/models/failure.rb', line 10

def worker
  @worker
end