1

I have couple of worker running background job. The method in this workers are like ~100 lines. What are general practices in optimizing and moving code to different files in Rails for Workers.

2 Answers 2

0

You just need do some new class and require in top of you worker.

0

I like to use resque, but the problem here is what we load all environment with each worker, so worker natively are very slow. I think the good idea about this is to load only class what you really need.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.