Skip to content
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

Add a Puma plugin for Solid Queue #43

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Add a Puma plugin for Solid Queue #43

merged 1 commit into from
Nov 21, 2023

Conversation

djmb
Copy link
Contributor

@djmb djmb commented Nov 17, 2023

This allows you to run Solid Queue as part of a puma cluster, by adding

plugin :solid_queue

to your Puma config.

It will boot up the Solid Queue supervisor, leaving it to manage the scheduler and worker processes as normal.

If either Puma or the Solid Cache supervisor dies, the other will notice and shut itself down.

On Puma shutdown, it will signal Solid Queue to also shutdown.

cc @rosa

This allows you to run Solid Queue as part of a puma cluster, by adding

```
plugin :solid_queue
```

to your Puma config.

It will boot up the Solid Queue supervisor, leaving it to manage the
scheduler and worker processes as normal.

If either Puma or the Solid Cache supervisor dies, the other will notice
and shut itself down.

On puma shutdown, it will signal Solid Queue to also shutdown.
Copy link
Member

@rosa rosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, Donal! 🙏

@djmb djmb merged commit 6b82b6b into main Nov 21, 2023
4 checks passed
@djmb djmb deleted the puma-plugin branch November 21, 2023 08:36
@stillhart
Copy link

How do I control the puma solid_queue concurrency? The config/solid_queue.yml does not seem to apply here

# config/solid_queue.yml
default: &default
  workers:
    - queues: "*"
      threads: 25
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants