Skip to content

Commit ff4fa09

Browse files
committed
silly crontab bug
1 parent f1bf926 commit ff4fa09

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

buildtools/bin/bash_functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ open_logs() {
3838
# takes nb days as argument
3939
lightenup() {
4040
if [[ $# -lt 1 ]]; then
41-
nb_days=1
41+
nb_days=7
4242
else
4343
nb_days=$1
4444
fi

buildtools/bin/crontab

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
30 2 * * 1 ~/Sety-project/devops/buildtools/bin/pyrun_static.sh
2-
5 * * * * ~/Sety-project/devops/buildtools/bin/pyrun_all.sh
3-
30 * * * * ~/Sety-project/devops/buildtools/bin/pyrun_restart_tradeexecutor.sh
2+
5 * * * * ~/Sety-project/devops/buildtools/bin/pyrun_all.sh ftx debug
3+
30 * * * * ~/Sety-project/devops/buildtools/bin/pyrun_restart_tradeexecutor.sh ftx debug

buildtools/bin/pyrun_all.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ source ~/.bashrc
33

44
# Could use docker-compose at some point...
55
# Run histfeed
6-
pyrun_histfeed ftx
6+
pyrun_histfeed $1
77

8-
histfeed_status="$(docker container wait histfeed_worker_ftx)"
8+
histfeed_status="$(docker container wait histfeed_worker_"$1")"
99
echo "Status code of histfeed_worker: "$histfeed_status""
1010

1111
# Run pfoptimizer only if histfeed returns 0
1212
if [[ histfeed_status -eq 0 ]]; then
13-
pyrun_pfoptimizer ftx SysPerp
14-
pyrun_pfoptimizer ftx debug
13+
pyrun_pfoptimizer $1 $2
1514
fi;
1615

1716
# Run pnlexplain every hour. Removed -e USERNAME=$USERNAME
18-
pyrun_riskpnl ftx SysPerp
19-
pyrun_riskpnl ftx debug
17+
pyrun_riskpnl $1 $2

0 commit comments

Comments
 (0)