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

Start next configuration after specific output from previous? #80

Open
martin-bjorling opened this issue Sep 2, 2021 · 1 comment
Open

Comments

@martin-bjorling
Copy link

I have an application with several run configurations which starts a bunch of different servers. These servers has to be started in a specific order, and I have to wait for one server to finish the startup sequence before starting the next one.

My problem is that when I start a specific server, it will not exit with an exit code since the application requires all these server so be running. Instead, the way it works is that when server A outputs a specific message in the console (normally "Server started"), then I can start server B etc.

Depending on several things, these servers usually takes a very different amount of time to start, for example, the first one usually takes several minutes to start, while the second one usually takes about 30 seconds. The third takes about a minute but the fourth actually don't have to wait for the third to finish startup.

So my question is: Is there a possibility to somehow add a "wait for output before starting next"?

@bjansen
Copy link

bjansen commented Jan 16, 2023

Here's a mockup proposal:

image

  1. Add a '✎' button to edit an element in the list. The button opens a popup where you can configure a message to grep in the console OR a custom delay (which would tackle "with delay" option to start configuration one by one to be enabled separately #79). I think this should be done with radio buttons, no need to support a message to grep AND a delay.
  2. The list becomes a table with three columns:
    • run config name,
    • console message
    • delay
  3. with delay either disappears, of becomes with default delay, and the value can be overriden per run config

@rkhmelyuk what do you think of this?

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

2 participants