Skip to content

Commit 29cde9d

Browse files
committed
USETHROTTLING imposes TIMEFRAME_RATE_LIMIT=1 only if latter is not set
1 parent f942880 commit 29cde9d

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
@@ -284,16 +284,13 @@ fi
284284
ln -sf $O2DPG_ROOT/DATA/common/setenv.sh
285285
ln -sf $O2DPG_ROOT/DATA/common/getCommonArgs.sh
286286

287-
# TFDELAY and throttling
288-
export TFDELAYSECONDS=40
289-
if [[ -n "$ALIEN_JDL_TFDELAYSECONDS" ]]; then
290-
TFDELAYSECONDS="$ALIEN_JDL_TFDELAYSECONDS"
291-
# ...otherwise, it depends on whether we have throttling
292-
elif [[ -n "$ALIEN_JDL_USETHROTTLING" ]]; then
293-
TFDELAYSECONDS=1
294-
if [[ -n "$ALIEN_JDL_NOTFDELAY" ]]; then
295-
TFDELAYSECONDS=0
296-
fi
287+
# throttling and TF-delay
288+
: ${TFDELAYSECONDS:=0}
289+
if [[ -n "$ALIEN_JDL_NOTFDELAY" ]] && [[ "$ALIEN_JDL_NOTFDELAY" -gt 0 ]] ; then
290+
TFDELAYSECONDS=0
291+
fi
292+
293+
if [[ -n "$ALIEN_JDL_USETHROTTLING" ]] && [[ -z "$TIMEFRAME_RATE_LIMIT" ]] ; then
297294
export TIMEFRAME_RATE_LIMIT=1
298295
fi
299296

0 commit comments

Comments
 (0)