Using Ruby -v 2.7.5 and Rails -v 6.1.7.6 I am using gem 'faktory_worker_ruby', '~> 1.0', for the background jobs.
while starting the faktory demon getting the following error:
Error fetching job: Connection refused - connect(2) for "localhost" port 7419
Please guide the way around to get it working fine.
we can use docker to do it: install docker faktory the run it on the ports:
Now inside the rails application run it will work fine:
related blog: https://medium.com/shogun-team/faktory-tutorial-with-workers-in-go-24dd2aa69f3a#:~:text=Installing%20Faktory,to%20use%20the%20docker%20image.