Skip to content

Conversation

@nolanpro
Copy link
Contributor

@nolanpro nolanpro commented Oct 14, 2025

Instead of running TENANT=X php artisan horizon for each tenant, we need a single instance of horizon to handle all tenants due to memory consumption. Every instance of horizon uses the full application memory in a long running process so the pod was running out of memory and crashing.

This refactor allows the jobs to bootstrap a fresh application instance using the tenant id saved in the job context.

We have to bootstrap a fresh application each time because the long-running horizon job always shares the same application in memory.

ci:deploy
ci:multitenancy
ci:k8s-branch:multitenancy

..

@nolanpro nolanpro requested a review from gusys October 14, 2025 21:52
Copy link
Contributor

@gusys gusys left a comment

Choose a reason for hiding this comment

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

Looks good to me...

@vladyrichter
Copy link

QA server K8S was successfully deployed https://tenant-1.ci-0e973e832f.engk8s.processmaker.net

@vladyrichter
Copy link

QA server K8S was successfully deployed https://tenant-1.ci-0e973e832f.engk8s.processmaker.net

@vladyrichter
Copy link

QA server K8S was successfully deployed https://tenant-1.ci-0e973e832f.engk8s.processmaker.net

@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@vladyrichter
Copy link

QA server K8S was successfully deployed https://tenant-1.ci-0e973e832f.engk8s.processmaker.net

@nolanpro nolanpro merged commit 658e61e into develop Oct 16, 2025
7 of 8 checks passed
@nolanpro nolanpro deleted the task/FOUR-27352 branch October 16, 2025 21:06
@nolanpro nolanpro restored the task/FOUR-27352 branch October 21, 2025 15:04
@nolanpro nolanpro deleted the task/FOUR-27352 branch October 21, 2025 15:05
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.

4 participants