diff --git a/_sources/scripts/maintenance-scripts/mw_job_runner.sh b/_sources/scripts/maintenance-scripts/mw_job_runner.sh index a651847..fdc8f99 100755 --- a/_sources/scripts/maintenance-scripts/mw_job_runner.sh +++ b/_sources/scripts/maintenance-scripts/mw_job_runner.sh @@ -52,15 +52,20 @@ if [ -f "$MW_VOLUME/config/wikis.yaml" ]; then else # wikis.yaml file does not exist. Skip parsing and running specific wiki jobs. # Place your general (non-wiki-specific) job run commands here. - php $RJ --type="enotifNotify" - sleep 1 - php $RJ --type="createPage" - sleep 1 - php $RJ --type="refreshLinks" - sleep 1 - php $RJ --type="htmlCacheUpdate" --maxjobs=500 - sleep 1 - php $RJ --maxjobs=10 + while true; do + php $RJ --type="enotifNotify" + sleep 1 + php $RJ --type="createPage" + sleep 1 + php $RJ --type="refreshLinks" + sleep 1 + php $RJ --type="htmlCacheUpdate" --maxjobs=500 + sleep 1 + php $RJ --maxjobs=10 + # Wait some seconds to let the CPU do other things, like handling web requests, etc + echo mwjobrunner waits for "$MW_JOB_RUNNER_PAUSE" seconds... + sleep "$MW_JOB_RUNNER_PAUSE" + done fi # Wait for all background jobs to finish diff --git a/_sources/scripts/maintenance-scripts/mw_transcoder.sh b/_sources/scripts/maintenance-scripts/mw_transcoder.sh index c60a5f8..69f9722 100755 --- a/_sources/scripts/maintenance-scripts/mw_transcoder.sh +++ b/_sources/scripts/maintenance-scripts/mw_transcoder.sh @@ -40,12 +40,14 @@ if [ -f "$MW_VOLUME/config/wikis.yaml" ]; then done else echo "Warning: wikis.yaml does not exist. Starting the general transcoder." - php $RJ --type=webVideoTranscodePrioritized --maxjobs=10 - sleep 1 - php $RJ --type=webVideoTranscode --maxjobs=1 - # Wait some seconds to let the CPU do other things, like handling web requests, etc - echo mwtranscoder waits for "$MW_JOB_TRANSCODER_PAUSE" seconds... - sleep "$MW_JOB_TRANSCODER_PAUSE" + while true; do + php $RJ --type=webVideoTranscodePrioritized --maxjobs=10 + sleep 1 + php $RJ --type=webVideoTranscode --maxjobs=1 + # Wait some seconds to let the CPU do other things, like handling web requests, etc + echo mwtranscoder waits for "$MW_JOB_TRANSCODER_PAUSE" seconds... + sleep "$MW_JOB_TRANSCODER_PAUSE" + done fi # Wait for all background jobs to finish