chaps-io/gush

cannot create workflow instance

shuheix opened this issue · 2 comments

Hi, I try to create workflow instance at rails console, but i cant

its never ends
image

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?

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.

thanks you for your answer
I try to check redis connection