uschtwill / rails_rss_aggregator

MIT License
3 stars 1 forks source link

Question: Where to put my workers? #11

Closed uschtwill closed 9 years ago

uschtwill commented 9 years ago

Actually, I am not using that worker anymore. But I had to put it here in order to be picked up. I've seen people keep their workers in app/workers/, but that didn't work for me, it didn't get picked up. Is that a gem working its magic for other guys?

screen shot 2015-03-10 at 17 29 26

uschtwill commented 9 years ago

@alvinkatojr

alvinkatojr commented 9 years ago

@uschtwill there are bunch of gems that do a good job. I was surprised to see you using a rake task for the background job. By default anything in the app directory will be picked up by rails which is why you see 'workers' folders.

Try some fun gems, sidekiq, delayed_job are good starters. But before you jump into them read about ActiveJob which is the new plugin for working with jobs and makes work easier.

uschtwill commented 9 years ago

@alvinkatojr Alright, will do!