Add delayed_job worker service to docker-compose#4475
Draft
neolefty wants to merge 2 commits intoSpeciesFileGroup:developmentfrom
Draft
Add delayed_job worker service to docker-compose#4475neolefty wants to merge 2 commits intoSpeciesFileGroup:developmentfrom
neolefty wants to merge 2 commits intoSpeciesFileGroup:developmentfrom
Conversation
Allow users to specify a custom password when exporting SQL dumps instead of always using the hardcoded 'taxonworks' password. The default behavior remains unchanged - if no password is provided, it falls back to 'taxonworks'. - Add password input field to the export UI - Update controller to accept custom password parameter - Modify background job to pass password through - Update export logic to use custom password throughout 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Adds a dedicated worker service to docker-compose.yml that automatically starts delayed_job when running the development environment. This ensures background jobs (like database exports) are processed without manual intervention. The worker service: - Uses the same Docker image as the app service - Shares volumes and database connections - Runs `bundle exec rake jobs:work` to process delayed jobs continuously 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
It looks like this PR includes the commit from PR #4476? I think that's okay, we'll just work with one or the other, so you can keep them both open as is for now. I'll just mention a couple other things for now:
|
Contributor
One data point: it does cause the fans on my laptop to run non-stop (on native rails, not docker) :( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
workerservice to docker-compose.yml that automatically starts delayed_jobMotivation
Currently, when using Docker Compose for development, background jobs (like database exports) queue but don't process because there's no delayed_job worker running. Users must manually start workers with
docker compose exec app bundle exec rake jobs:work.This PR adds a dedicated worker service that starts automatically with
docker compose up.Implementation
The worker service:
bundle exec rake jobs:workcontinuouslyTest plan
docker compose upwith this changeNote
This is a draft PR pending the merge of related documentation PR #4473.
🤖 Generated with Claude Code