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

Prevent multiple instance of the dev command running at the same time with a File lock #1609

Open
ericallam opened this issue Jan 13, 2025 · 0 comments

Comments

@ericallam
Copy link
Member

It's currently possible to run the dev command in multiple different sessions at the same time, which causes all sorts of issues, including:

  • Cannot find module dev-run-worker.mjs error
  • Some runs getting "stuck" while others work

We should add a "file lock" mechanism on the dev command to prevent this. This would create a file in .trigger/dev.lock with the pid of the dev CLI process and if it already exists, we would exit with a helpful message about how to recover from this issue (or even better, give an option to stop the other dev CLI process).

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

No branches or pull requests

1 participant