Integrate your background jobs in a statefuly way in rails applications