Skip to content

Commit d096409

Browse files
committed
WMAgent: define rule lifetime for dev/test agents
Remove a closing bracket
1 parent f2809d8 commit d096409

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/pypi/wmagent/init.sh

+3
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ agent_tweakconfig() {
511511
rucio_auth=https://cms-rucio-auth.cern.ch
512512
sed -i "s+WorkQueueManager.rucioUrl = .*+WorkQueueManager.rucioUrl = '$rucio_host'+" $WMA_CONFIG_DIR/config.py
513513
sed -i "s+WorkQueueManager.rucioAuthUrl = .*+WorkQueueManager.rucioAuthUrl = '$rucio_auth'+" $WMA_CONFIG_DIR/config.py
514+
# Tweak rule lifetime, see https://github.com/dmwm/WMCore/issues/12316
515+
sed -i "s+RucioInjector.blockRuleParams = {}+RucioInjector.blockRuleParams = {'lifetime': 14 * 24 * 60 * 60}+" $WMA_CONFIG_DIR/config.py
516+
sed -i "s+RucioInjector.containerDiskRuleParams = {+RucioInjector.containerDiskRuleParams = {'lifetime': 14 * 24 * 60 * 60, +" $WMA_CONFIG_DIR/config.py
514517
fi
515518

516519
local forceSiteDown=""

0 commit comments

Comments
 (0)