Merge pull request #199 from lissyx/issue198

Forcing python to not buffer output
This commit is contained in:
lissyx 2016-11-16 14:14:19 +01:00 committed by GitHub
commit 757fc74e1e
5 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ The tracking of WER is made using the following workflow:
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/bin/:/bin
# Run WER every 15 mins
*/5 * * * * (mkdir -p $HOME/wer && cd $HOME/wer && source /usr/local/tensorflow-env/bin/activate && /usr/bin/curl -H "Cache-Control: no-cache" -L https://raw.githubusercontent.com/mozilla/DeepSpeech/website/util/automation.py | ds_website_username="u" ds_website_privkey="$HOME/.ssh/k" ds_website_server_fqdn="host.tld" ds_website_server_root="www/" ds_wer_automation="./bin/run-wer-automation.sh" python ; cd) 2>$HOME/.deepspeech_wer.err.log 1>$HOME/.deepspeech_wer.out.log
*/15 * * * * test ! -f $HOME/.cache/deepspeech_wer/lock && (rm $HOME/.deepspeech_wer.locked.log; mkdir -p $HOME/wer && cd $HOME/wer && source /home/alissy/tf-warpctc-venv/bin/activate && /usr/bin/curl -H "Cache-Control: no-cache" -L https://raw.githubusercontent.com/mozilla/DeepSpeech/master/util/automation.py | ds_website_username="UUU" ds_website_privkey="FFF" ds_website_server_fqdn="SSS" ds_website_server_root="www/" ds_wer_automation="./bin/run-wer-automation.sh" python -u ; cd) 2>$HOME/.deepspeech_wer.err.log | /usr/bin/ts "\%Y-\%m-\%d \%H:\%M:\%S" > $HOME/.deepspeech_wer.out.log || TZ='Europe/Berlin' date --rfc-2822 >> $HOME/.deepspeech_wer.locked.log
```
* Cron task will take care of:
* checking if any there were any new merges

View File

@ -19,4 +19,4 @@ if [ ! -f DeepSpeech.ipynb ]; then
exit 1
fi;
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python -u

View File

@ -22,4 +22,4 @@ if [ ! -f DeepSpeech.ipynb ]; then
exit 1
fi;
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python -u

View File

@ -22,4 +22,4 @@ if [ ! -f DeepSpeech.ipynb ]; then
exit 1
fi;
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python -u

View File

@ -20,6 +20,6 @@ export ds_validation_step
ds_export_dir="/data/exports/`git rev-parse --short HEAD`"
export ds_export_dir
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python
jupyter-nbconvert --to script DeepSpeech.ipynb --stdout | python -u
ln -sf $ds_export_dir $ds_export_dir/../latest