Skip to content

Commit 47e01f3

Browse files
committed
USETHROTTLING imposes TIMEFRAME_RATE_LIMIT=1 only if latter is not set
1 parent eb76058 commit 47e01f3

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

DATA/production/configurations/asyncReco/async_pass.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,13 @@ fi
280280
ln -sf $O2DPG_ROOT/DATA/common/setenv.sh
281281
ln -sf $O2DPG_ROOT/DATA/common/getCommonArgs.sh
282282

283-
# TFDELAY and throttling
284-
export TFDELAYSECONDS=40
285-
if [[ -n "$ALIEN_JDL_TFDELAYSECONDS" ]]; then
286-
TFDELAYSECONDS="$ALIEN_JDL_TFDELAYSECONDS"
287-
# ...otherwise, it depends on whether we have throttling
288-
elif [[ -n "$ALIEN_JDL_USETHROTTLING" ]]; then
289-
TFDELAYSECONDS=1
290-
if [[ -n "$ALIEN_JDL_NOTFDELAY" ]]; then
291-
TFDELAYSECONDS=0
292-
fi
283+
# throttling and TF-delay
284+
: ${TFDELAYSECONDS:=0}
285+
if [[ -n "$ALIEN_JDL_NOTFDELAY" ]] && [[ "$ALIEN_JDL_NOTFDELAY" -gt 0 ]] ; then
286+
TFDELAYSECONDS=0
287+
fi
288+
289+
if [[ -n "$ALIEN_JDL_USETHROTTLING" ]] && [[ -z "$TIMEFRAME_RATE_LIMIT" ]] ; then
293290
export TIMEFRAME_RATE_LIMIT=1
294291
fi
295292

0 commit comments

Comments
 (0)