-
-
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
Run command timelimit #924
Comments
Ok, i think we can add option for support that case. |
Done in #1092 |
That was a huge bait. While v3.3 fails at running for more than an hour, v.5 doesn't work at all, after all days spent trying to make it function. It's inner API became more restrictive, it requires external tools (rsync?), external configs (.ssh/config?), it's harder to invoke (dep task --roles rolename instead of just dep task stagename), and it still doesn't work. I see your general direction is moving from PHP code to 'native' workflow, but it's 'native' just for unix. Using a simple tool must be easy. Using v3.3 was easy. After several days of trying, v5 still doesn't work for me. That's sad. |
@dima-stefantsov v5 is still in beta. It may don't work. instead of crying how bad it became you can better offer solution how to make it better. I put a lot of work in v5 and i think it's best app i've ever created. |
Agreed, you can just keep using v3 forever if you like it better, or fork it and keep maintaining that. I do like that deployer 5 is going in a more 'native' solution regarding SSH etc. |
That I have noticed. It looks like you have improved very much as a programmer: namespaces, smart native solutions. But deployer has lost what it was good for: it's user-simplicity. For those, who like I would continue to use dep v3.3, to fix current issue you have to edit https://github.com/deployphp/deployer/blob/3.x/src/Server/Remote/PhpSecLib.php#L49 and write there huge positive value of seconds, for example 172800 would be 2 days. Since you are going that way, you might as well enable real time run() output in v3.3. For that you'd had to edit vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php http://4.stefantsov.com/s/2017.04.14_11.40.01_xqpcp2g3.png and vendor/deployer/deployer/src/functions.php http://4.stefantsov.com/s/2017.04.14_11.40.43_p2h7e8tu.png And while we are at it, set useful default runLocally value http://4.stefantsov.com/s/2017.04.14_11.42.53_0bq6tvbx.png |
@barryvdh that 'native' way is huge paradigm change for deployer. It was good because it was using just universal PHP libs. It worked good on Windows. Now it doesn't. Now user can't specify login password. Now user can't specify passphrase. Now user have to go further ways to invoke dep commands (stages now are singular), etc. That is an improvement for some use cases, but for my case it's a huge step back. |
Last time I said what could be better, you answered I should fork it and reminded me deployer is provided as is. Every hardship I encountered is my feedback on what can be done better:
|
Disagree. Deployer uses semver, so it doesn't break api in minor/patch releases. Read more about it here: http://semver.org/
Same here.
Maybe allowing array here will make deployer easy to use.
Use still can define everything inside one
Better docs is my next goal at the project. I already started to write a lot of it. But finding UPGRADE.md file in root on project must be simple enough for dev people.
Thank you for telling me what I need to do. But I prefer to decide what I should do first and what is best for the project myself.
Deployer 5.x now has 300s as default. I think this is good, because it will show what some task take a lot of time and dev should explicitly set it to unlimited, but maybe unlimited by default is better (stuff for research and improvement).
I will.
One more time: I think Deployer 5.x is much better then previous version. It may contain bugs, it is still in beta. But the approach and features offered by the new version are much better. They allow for greater flexibility. |
Description
Run command has a fixed time limit of 1 hour.
Steps to reproduce
Expected outcome
Allow me to override timelimit, or make run command have no timelimit by default.
http://4.stefantsov.com/s/?2016.12.13_19.17.04_bp73y2t4.png
The text was updated successfully, but these errors were encountered: