RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

New gem job_enqueue_logger - logs background jobs enqueued by your application

https://github.com/fatkodima/job_enqueue_logger - idea similar to SQL query tracer, but for background jobs.

Background queueing backends do not write log lines stating that the job was enqueued, making it harder to find from which part of the large application the job was enqueued or just generally understanding what’s going on under the hood when the controller’s action performed, for example.

When the job is enqueued within the guts of the application, the log line is generated:

Enqueued AvatarThumbnailsJob (jid=578b3d10fc5403f97ee0a8e1) to 
Sidekiq(default) with arguments: 1092412064

Or with backtraces enabled:

Enqueued AvatarThumbnailsJob (jid=578b3d10fc5403f97ee0a8e1) to 
Sidekiq(default) with arguments: 1092412064
↳ app/models/user.rb:421:in `generate_avatar_thumbnails'
  app/services/user_creator.rb:21:in `call'
  app/controllers/users_controller.rb:49:in `create'

Currently supports sidekiq, resque and delayed_job.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in