For rails I’ve used que in the past, which is a job queue adapter for Postgres. It supports activejob.
https://github.com/que-rb/que
https://island94.org/2020/07/introducing-goodjob-1-0
https://github.com/bensheldon/good_job