Understanding ActiveJob Background Jobs in Rails

  Рет қаралды 276

Rajat Talesra

Rajat Talesra

Күн бұрын

Пікірлер: 9
@think4ai
@think4ai 3 ай бұрын
Thanks for your effort in explaining everything!
@rtcodes
@rtcodes 3 ай бұрын
Glad it was helpful! :-)
@sunilkumarjaiswar6773
@sunilkumarjaiswar6773 Ай бұрын
Thanks rajat for explaining active job
@rtcodes
@rtcodes Ай бұрын
Your welcome 😀
@SahilSharma-k7u
@SahilSharma-k7u 3 ай бұрын
Great video, can you please continue to make more such videos on topics like active record callbacks, etc.? Thanks for all the hard work you do
@rtcodes
@rtcodes 3 ай бұрын
Thanks a lot. I will try to great videos whenever possible. Priority is quality over consistency. :-)
@sachinpathak7171
@sachinpathak7171 2 ай бұрын
Excellent explanation. Could I use active job without any adapter if I want to wait untill a specific time?. I get confused in understanding cron jobs. Like creating it(cron job) whenever gem vs using sidekiq as adapter and use wait_untill method. Sry I am new to rails. 😅
@rtcodes
@rtcodes Ай бұрын
You could use Active Job without an adapter for basic delayed execution, but for more robust scheduling, you'd typically need a background job adapter like Sidekiq, especially for something like waiting until a specific time. If you want to wait until a certain time, the wait_until method in Active Job allows you to do that, but you'd still need an adapter to process it in the background. Sidekiq is commonly used because it scales well and handles retries and failures effectively. Cron jobs are a bit different-they're typically scheduled tasks that run periodically. If you want to run a task at a specific time, you can create a cron job, but using a gem like whenever can simplify the setup. So, if you're just starting out and need to delay a job until a certain time, using Sidekiq with wait_until is a great option. For recurring tasks, that's where cron jobs or something like whenever would come in handy. Feel free to join my channel for more premium and exclusive content: kzbin.info/door/0iJuDcwwuipQ-gwlE2vjzwjoin
@sachinpathak7171
@sachinpathak7171 Ай бұрын
​@@rtcodesthank you.
How to use Solid Queue in Ruby on Rails
13:24
GoRails
Рет қаралды 7 М.
JavaScript Event Loop -- Visualized!
29:43
ColorCode
Рет қаралды 19 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,5 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 36 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Setting up Background Jobs in Ruby on Rails
11:07
CJ Avilla (cjav_dev)
Рет қаралды 13 М.
Rails 8 Secret: Built in Rate Limiting in Seconds
7:07
Rails Quest by Kaleb Lape
Рет қаралды 400
React Native just dropped a MASSIVE update
15:06
Mehul - Codedamn
Рет қаралды 63 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 242 М.
Background Processing with Rails, Redis and Sidekiq
15:00
Decypher Media
Рет қаралды 61 М.
GenAI Roadmap - Job ready Generative AI path
8:13
Deepchand O A
Рет қаралды 14 М.
Coding a FULL App with AI (You Won't Believe This)
15:19
Creator Magic
Рет қаралды 169 М.
Paginating Rails Models using Kaminari Gem
13:35
APPSIMPACT Academy
Рет қаралды 2,3 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 2,5 МЛН