This PR is purely technical, it does produces any functional change to the user - add Lock mecanism to run steps concurrently - update `workflow-executor.workspace-service.ts` to handle multi branch workflow execution - stop passing `context` through steps, it causes race condition issue - refactor a little bit - simplify `workflow-run.workspace-service.ts` to prepare `output` and `context` removal - move workflowRun status computing from `run-workflow.job.ts` to `workflow-executor.workspace-service.ts` ## NOTA BENE When a code step depends of 2 parents like in this config (see image below) If the form is submitted before the "Code - 2s" step succeed, the branch merge "Form" step is launched twice. - once because form is submission Succeed resumes the workflow in an asynchronous job - the second time is when the asynchronous job is launched when "Code - 2s" is succeeded - the merge "Form" step makes the workflow waiting for response to trigger the resume in another job - during that time, the first resume job is launched, running the merge "Form" step again This issue only occurs with branch workflows. It will be solved by checking if the currentStepToExecute is already in a SUCCESS state or not <img width="505" alt="image" src="https://github.com/user-attachments/assets/b73839a1-16fe-45e1-a0d9-3efa26ab4f8b" />
The #1 Open-Source CRM
🌐 Website · 📚 Documentation · Roadmap ·
Discord ·
Figma
Installation
See:
🚀 Self-hosting
🖥️ Local Setup
Does the world need another CRM?
We built Twenty for three reasons:
CRMs are too expensive, and users are trapped. Companies use locked-in customer data to hike prices. It shouldn't be that way.
A fresh start is required to build a better experience. We can learn from past mistakes and craft a cohesive experience inspired by new UX patterns from tools like Notion, Airtable or Linear.
We believe in Open-source and community. Hundreds of developers are already building Twenty together. Once we have plugin capabilities, a whole ecosystem will grow around it.
What You Can Do With Twenty
Please feel free to flag any specific needs you have by creating an issue.
Below are a few features we have implemented to date:
- Personalize layouts with filters, sort, group by, kanban and table views
- Customize your objects and fields
- Create and manage permissions with custom roles
- Automate workflow with triggers and actions
- Emails, calendar events, files, and more
Personalize layouts with filters, sort, group by, kanban and table views
Customize your objects and fields
Create and manage permissions with custom roles
Automate workflow with triggers and actions
Emails, calendar events, files, and more
Stack
- TypeScript
- Nx
- NestJS, with BullMQ, PostgreSQL, Redis
- React, with Recoil, Emotion and Lingui
Thanks
Thanks to these amazing services that we use and recommend for UI testing (Chromatic), code review (Greptile), catching bugs (Sentry) and translating (Crowdin).
Join the Community
- Star the repo
- Subscribe to releases (watch -> custom -> releases)
- Follow us on Twitter or LinkedIn
- Join our Discord
- Improve translations on Crowdin
- Contributions are, of course, most welcome!




