Skip to content

Pass task details to error handler #309

@timgladwell

Description

@timgladwell

Enhance the existing maintenance_tasks error hook 👇 to add context information about the task that caused the error

MaintenanceTasks.error_handler.call(error)

Note: host system can capture additional details about the background job itself with a setup similar to

        Bugsnag.notify(exception) do |notification|
          notification.severity = 'warning'
          notification.add_tab(:sidekiq, job_context)
        end

Which produces a bugsnag report similar to
image
so a full-featured background job report may not be necessary, just the maintenance task details.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions