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

Allow to add simplified workers to services #54

Closed
bohdan-shulha opened this issue Jul 4, 2024 · 0 comments
Closed

Allow to add simplified workers to services #54

bohdan-shulha opened this issue Jul 4, 2024 · 0 comments
Labels
feat New feature or request
Milestone

Comments

@bohdan-shulha
Copy link
Contributor

bohdan-shulha commented Jul 4, 2024

We've implemented "workers" as "processes" which are fully independent units.

This will cause lots of issues when users would like to have 2 and more workers with the exact same docker image, env variables, secrets, configs and so on.

Example - ptah-server itself. We need to serve: the Laravel Web App, the schedule:work command and queue:work to process the scheduled tasks themselves.

Need to allow to add the "Worker Command" to the service creation form, so that it will create multiple Docker Services per one process definition.

Workers must not share volumes and should not be able to map ports & caddy endpoints.

Ensure that workers can operate with in-line env variables to allow minimal customization, like this:

SPRING_PROFILES_ACTIVE=etl /path/to/executable

For the first version, let's omit everything except the command definition itself.

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

No branches or pull requests

1 participant