I'm working on a product that calls of perform_later
jobs. This works for our product in production because we have a series of workers who will run all the jobs.
But, when I'm using the app locally, I don't have access to these workers, and I'd like to change all the perform_later
s into perform_now
s only when I use the app locally.
What's the best way to do this? One idea I had was to add something in my env
file that would add a variable to make all perform_later
s into perform_now
s -- but I'm not sure what a flag or variable like that would look like.
Ideas?