#ActiveJob

2025-01-04

I'm adding background jobs to my new app (Rails7.2 + SolidQueue), and not sure how things should be designed.
I need to run daily job to generate notifications on user-created task due/reminder date.

Should I:

1) create one job that iterates all relevant tasks and generates notifications? (might get slow with more users)

2) have one job that iterates tasks, and creates separate job for every relevant task?

3) something else?

#rubyonrails #activejob #SolidQueue

2024-10-21

Sidekiq remains the fastest and most robust job processing system for Ruby on Rails and ActiveJob.

Our latest article explores how to work with scheduled jobs in Sidekiq.

Give it a read!

honeybadger.io/blog/sidekiq-ba

@sidekiq @getajobmike

#Ruby #RubyOnRails #Sidekiq #ActiveJob #Programming

2024-10-08

Picture this: you're six months into a fresh Rails app that processes business-critical jobs with Solid Queue—and you deployed a bug that is wreaking havoc in thousands of jobs. How do you find them?

You'll wish you'd read our latest article from Jeffery Morhous!

honeybadger.io/blog/solid-queu

#Ruby #RubyOnRails #SolidQueue #ActiveJob #SQlite

GripNewsGripNews
2023-09-27

🌖 Ruby on Rails 的 LiteStack 簡介 | AppSignal Blog
➤ Ruby on Rails 的 LiteStack 簡介
blog.appsignal.com/2023/09/27/
本文介紹 LiteStack,一個一站式解決方案,可在單臺機器上託管和處理所有生產數據。LiteStack 使用 SQLite 提供數據庫、ActiveJob、ActionCable 和 ActiveSupport::Cache 存儲。此外,本文還介紹了 Litestream 和 StableDiffusion,並提供了一個示例 Rails 應用程序。
+ 這篇文章提供了很好的 LiteStack 簡介,並且還有一個有趣的示例應用程序。
+ 很棒的文章,對於 Ruby on Rails
on Rails

2023-09-22

Is there a document somewhere that explains what a new #rails #ActiveJob queue adapter should implement? An interface specification of sorts?

Seems I'll go read the code, then.

2023-08-03

Upgrade from Ruby 2 to Ruby 3 with confidence—and no ArgumentErrors popping up…

🚀 If not, Francois can help you fix them. Read what our Sr. Engineer recommends: fastruby.io/blog/custom-deprec

#rubyonrails #railsupgrade #activejob #sidekiq

2023-01-11

#ruby geeks: I have been on a quest to test #Rails's #ActiveJob with #rspec. I have found precisely zero official documentation that actually works.

HERE IS THE ONLY GUIDE THAT HAS WORKED

gist.github.com/ChuckJHardy/10

when / if you get errors about Minitest::UnexpectedError (even though you're running rspec) then read this SO post

stackoverflow.com/questions/72

2023-01-10

i've wasted over an hour on this take-home test because rspec's documentation AND ?!SOURCE?! do not match the reality i am seeing in ANY WAY.

methods that only accept blocks and throw exceptions if you pass them something else are complaining that they've been passed a block. :lolsob:

Testing #ruby's #ActiveJob turns out to be a pain in the arse.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst