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
@rtcodes3 ай бұрын
Thanks a lot. I will try to great videos whenever possible. Priority is quality over consistency. :-)
@sachinpathak71712 ай бұрын
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Ай бұрын
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