File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ test_single_wf()
7474 if [[ " ${ret_this} " != " 0" ]] ; then
7575 echo " [FATAL]: O2DPG_TEST Workflow creation failed" >> ${LOG_FILE_WF}
7676 elif [[ " ${execute} " != " " ]] ; then
77- ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 -tt aod >> ${LOG_FILE_WF} 2>&1
77+ local memlimit=${O2DPG_TEST_WORKFLOW_MEMLIMIT: +--mem-limit O2DPG_TEST_WORKFLOW_MEMLIMIT}
78+ ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 -tt aod ${memlimit} >> ${LOG_FILE_WF} 2>&1
7879 ret_this=${?}
79- [[ " ${ret_this} " == " 0" ]] && { ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels QC >> ${LOG_FILE_WF} 2>&1 ; ret_this_qc=${?} ; }
80- [[ " ${ret_this} " == " 0" ]] && { ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels Analysis >> ${LOG_FILE_WF} 2>&1 ; ret_this_analysis=${?} ; }
80+ [[ " ${ret_this} " == " 0" ]] && { ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels QC ${memlimit} >> ${LOG_FILE_WF} 2>&1 ; ret_this_qc=${?} ; }
81+ [[ " ${ret_this} " == " 0" ]] && { ${O2DPG_ROOT} /MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels Analysis ${memlimit} >> ${LOG_FILE_WF} 2>&1 ; ret_this_analysis=${?} ; }
8182 ret_this=$(( ret_this + ret_this_qc + ret_this_analysis))
8283 [[ " ${ret_this} " != " 0" ]] && echo " [FATAL]: O2DPG_TEST Workflow execution failed" >> ${LOG_FILE_WF}
8384 fi
@@ -173,6 +174,8 @@ print_usage()
173174 echo " If also not set, this will be set to HEAD. However, if there are unstaged"
174175 echo " changes, it will left blank."
175176 echo
177+ echo " O2DPG_TEST_WORKFLOW_MEMLIMIT : The memory limit that is passed to the workflow runner in case a workflow is executed (optional)"
178+ echo
176179}
177180
178181while [ " $1 " != " " ] ; do
You can’t perform that action at this time.
0 commit comments