📎 Webclip
Debug delayed job in Rails
The post explains a simple way to debug delayed_job in a Rails project. It uses the Rails console to create a worker with quiet set to false, then starts that worker so job code can be debugged directly.
Reading notes#
- Open a Rails console in the project.
- Create a delayed_job worker with
quiet: falseso it prints to the console. - Start the worker from the console.
- Use a debugger statement inside the jobs and debug them without loggers.
