You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
423 B
20 lines
423 B
# TODO: move to Carto::Common::JobLogger
|
|
|
|
class ResqueFailureLogger < Resque::Failure::Base
|
|
|
|
include ::LoggerHelper
|
|
|
|
def save
|
|
log_error(
|
|
message: 'Job failed',
|
|
component: 'cartodb.resque',
|
|
exception: exception,
|
|
worker: { pid: worker.pid, hostname: worker.hostname },
|
|
job_class: payload['class'],
|
|
args: payload['args'].inspect,
|
|
run_at: worker.job["run_at"]
|
|
)
|
|
end
|
|
|
|
end
|