-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Bump passphrase timeout to 30secs, check if process is running #1222
Conversation
What for? |
The ssh multiplex command is supposed to keep running in the background, right? |
Master connection detaches, doesn't it? |
Not sure, doesn't seem to in my case. When I run the command manually, it just sets up an SSH connection with exiting. Or is that not intended? Should I remove the check then? |
I'll test it. I found two cases: in homestad master stick to process, but on my macos it doesn't. Can you check in homestad? |
With sticks to process, you mean it keeps the process running? That is the same as in CentOS. I can give it a try on the mac, but if there is not way to detect if it's pending, we should just let it fail. Or perhaps we could still get some output of the failing. |
On my Mac is seems to have the same behavior. One thing that I'm encountering is that is run the deploy:failed task after. Depending on the hooks (eg. I think the flow should probably be something like this:
|
Nice, i think it will be good solution. |
Is that something you are going to do? |
No |
Maybe you can do it? |
I'll see. Do you still want to merge this first? |
Ah, you already had something like this. I created an InitializationException whichs extends the GracefulShutdownException, which skips the failed task. This shuts down immediatly. Better? |
This bumps the wait time for a passphrase to 30 secs. It also checks if the process is running, otherwise throw an immediate exception (for example, after entering the wrong passphrase)