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

SOAP needs a lockfile #12

Open
Yoshanuikabundi opened this issue Jul 5, 2023 · 0 comments
Open

SOAP needs a lockfile #12

Yoshanuikabundi opened this issue Jul 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Yoshanuikabundi
Copy link
Owner

Reproduction:

  1. Run a SOAP alias in environment x
  2. While 1 is running, change the environment spec for x
  3. While 1 is running, run a second SOAP alias in environment x

Problem:

The second command deletes the environment (in order to update it) while the first command is running in it.

Solution:

Write a lock file for the environment being used when a command is executed. The file should contain the number of commands currently running in that environment. When a new command is run, create or increment the lock file. When a command finishes, decrement or delete the lock file. If a command is run that would update an environment withh a lockfile, exit with an error. Add an argument to run in the existing environment even if the spec has changed (eg, "--no-update")

@Yoshanuikabundi Yoshanuikabundi added the bug Something isn't working label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant