rubyvideo icon indicating copy to clipboard operation
rubyvideo copied to clipboard

Refactor YouTubeVideoStatisticsJob to use continuable steps and enhance test coverage for job resumption

Open saiqulhaq opened this issue 2 months ago • 2 comments

Hi! 👋

Rails now supports the Continuation feature in ActiveJob. This PR demonstrates how we could refactor jobs (example: YouTubeVideoStatisticsJob) to leverage continuable steps and improve resumption/test coverage.

If you agree with this approach and are open to refactoring all Jobs for consistency, I’m happy to proceed further with this PR.** If not, I’ll close it to avoid unnecessary divergence.

Please let me know your thoughts Thanks!

saiqulhaq avatar Oct 18 '25 16:10 saiqulhaq

Thanks for opening this PR

while those YouTube statistics are not critical for the app (we don’t display them yet) I agree this is a nice place start using ActiveJob continuation 👍. I give it a spine but I think it is a good idea to push it forward

adrienpoly avatar Oct 19 '25 16:10 adrienpoly

ok thanks I will update all jobs then this one was for learning purpose only

saiqulhaq avatar Oct 21 '25 14:10 saiqulhaq