Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upadd local evaluation for simultaneous translation #2040
Conversation
|
See comments. |
| @@ -0,0 +1,44 @@ | |||
| #!/bin/bash | |||
| set -e | |||
mjdousti
Apr 22, 2020
Use this instead:
set -euxo errexit
set -o pipefail
Use this instead:
set -euxo errexit
set -o pipefail
jmp84
Apr 22, 2020
Contributor
Can you explain the advantages?
Can you explain the advantages?
mjdousti
Apr 28, 2020
In cmd1 | cmd2 line, if cmd1 fails, the script won't fail as the return value would be taken from cmd2. set -o pipefail ensures the script would fail when cmd1 fails.
For a more detailed discussion, see https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
In cmd1 | cmd2 line, if cmd1 fails, the script won't fail as the return value would be taken from cmd2. set -o pipefail ensures the script would fail when cmd1 fails.
For a more detailed discussion, see https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
|
||
| user_dir=$(dirname "$0")/.. | ||
|
|
||
| echo Evaluatation starts at $(date +%Y/%m/%d-%H:%M:%S) && |
mjdousti
Apr 22, 2020
Do you want to calculate the runtime? If so, use time command instead.
Do you want to calculate the runtime? If so, use time command instead.
|
LGTM |
| @@ -1,11 +1,14 @@ | |||
| from . import GET, SEND, DEFAULT_EOS | |||
| import time | |||
| from multiprocessing.pool import ThreadPool as Pool | |||
| from functools import partial | |||
| from functools import partial | |||
jmp84
Apr 22, 2020
Contributor
How did it work before :O ?
How did it work before :O ?
mjdousti
Apr 28, 2020
These two lines are identical to me!
These two lines are identical to me!
| @@ -0,0 +1,44 @@ | |||
| #!/bin/bash | |||
| set -e | |||
jmp84
Apr 22, 2020
Contributor
Can you explain the advantages?
Can you explain the advantages?
|
Hi @xutaima! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but we do not have a signature on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Usage: