-
-
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
Set infinite timeout for local commands #974
Conversation
Why not |
@Elfet Yes, for |
run('...', INF); |
I'd be fine with that too. Notice that Symfony expects |
@Elfet What do you think about |
Null is okay, but i like INF for verbosity. Also i'm thinking about changing |
@Elfet Sounds good. How to proceed on this PR? I can rebase to fix the conflicts if you think it makes sense to have this added. A little more background: with custom tasks you can of course manually pass |
I will manually merge this pr later.
This is interesting point, we need found good API for it. What are problems to solve we want? |
@Elfet That won't be easy to fix. We can reconfigure tasks by now but not the function calls (e.g. |
Done in #1092 run('...', ['timeout' => null]);
runLocally('...', ['timeout' => null]); |
Also i was thinking about renaming |
@Elfet The change you mentioned does not solve the issue mentioned here: I'd still need to copy the body of all tasks from 3rd party recipes to set the Thus please reconsider this PR. |
I like run and runLocally as they cleary communicate their purpose. |
@mbrodala i see, maybe it's should be 3rd party issue? I like simplicity of options in run function. For example, this is how i pass tty to git clone command: ace2889#diff-b4ebd1b9bf76c38d2568949ec0c70c51 Of cause we can add some global param, but i don't like it for some reason. |
You are probably right that the 3rd party recipes should offer options to customize the timeout. |
Very long running commands (e.g. DB import) can exceed even 5 minutes (see #955) thus switch to an infinite timeout for local commands.