Reputation: 5871
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.
Upvotes: 0
Views: 91
Reputation: 5871
we can use docker to do it: install docker faktory the run it on the ports:
docker pull contribsys/faktory
docker run --rm -it -p 127.0.0.1:7419:7419 -p 127.0.0.1:7420:7420 contribsys/faktory:latest
Now inside the rails application run it will work fine:
bundle exec faktory-worker
Upvotes: 0