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

Add stopResourcesBeforeRun to local_resource #6307

Open
renatosc opened this issue Feb 12, 2024 · 0 comments
Open

Add stopResourcesBeforeRun to local_resource #6307

renatosc opened this issue Feb 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@renatosc
Copy link

renatosc commented Feb 12, 2024

Describe the Feature You Want

I would like to have a stopResourcesBeforeRun event that would execute a task before the actual resource is trigger to run.

Current Behavior

afaik, there is no built-in event that allow us to do something before the resource runs (unless I use a external script do it everything in the script)

Why Do You Want This?

Let's say you have 2 local_resources, one to build a project and another to run. The run depends on build. The build is watching source files changes that triggers the build. After initial tilt startup, everything works fine. But after you do the first code change in your project, the build resource fails to run because all the output/bin files are locked by the running resource. With a stopResourcesBeforeRun event, I could setup to have it to stop/disable the running task before the build resource runs.

Additional context
The scenario above is simple (1 build , 1 run) but I could have 1 build for 5 runs for example, if my solution has several projects.

This is the gist of it, the naming or how it works needs to be defined.

@renatosc renatosc added the enhancement New feature or request label Feb 12, 2024
@renatosc renatosc changed the title Add beforeRun to local_resource Add stopResourcesBeforeRun to local_resource Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant