-
Notifications
You must be signed in to change notification settings - Fork 1
Adds redis queueing of next steps. #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/controllers/steps_controller.rb
Outdated
| # TODO: Do we only want to do this for certain updates, e.g., when setting status to completed? | ||
| # Enqueue next steps | ||
| next_steps = NextStepService.for(step: step) | ||
| next_steps.each { |next_step| Queue.enqueue(next_step) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there some steps that we don't want to enqueue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the template has skipQueue as an attribute I don't think we want to enqueue it. I think NextStepService is only returning things that can be queued though: https://github.com/sul-dlss/workflow-server-rails/blob/master/app/services/next_step_service.rb#L28
Gemfile
Outdated
| gem 'dor-services-client', '~> 1.2' | ||
| gem 'honeybadger', '~> 4.1' | ||
| gem 'jbuilder', '~> 2.5' | ||
| gem 'lyber-core', '>= 4.0.3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we can inline the one function rather than pull in lyber-core? Lyber-core is another dependency I'd like to kill off.
|
|
||
| def current_version | ||
| ObjectVersionService.current_version(params[:druid]) | ||
| # Providing the version as a param is for local testing without needing to run DOR services. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like us to move to this pattern in production too.
98a4636 to
3dc0a9c
Compare
docker-compose.yml
Outdated
| # - RAILS_ENV=development | ||
| - SETTINGS__ENABLE_STOMP=false | ||
| - SETTINGS__REDIS__HOSTNAME=redis | ||
| # image: 'suldlss/workflow-server:latest-dev' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these commented out lines
No description provided.