cannot create workflow instance
shuheix opened this issue · 2 comments
shuheix commented
Hi, I try to create workflow instance at rails console, but i cant
gush 2.0.1
# app/workflows/sample_workflow.rb
class SampleWorkflow < Gush::Workflow
def configure
run SleepJob
end
end
# app/jobs/sleep_job.rb
class SleepJob < Gush::Job
def perform
logger.debug("start")
sleep(30)
logger.debug("end")
end
end
# Gushfile
require_relative './config/environment.rb'
# application.rb
config.autoload_paths += %W[#{config.root}/lib #{Rails.root}/app/workflows #{Rails.root}/app/jobs]
sorry, what should I check?
pokonski commented
Creating workflows requires working Redis connection, it seems it is not properly working for you. Check if Redis is running and you can connect to it from your app, first.
shuheix commented
thanks you for your answer
I try to check redis connection