Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions _sources/scripts/maintenance-scripts/mw_job_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 8 additions & 6 deletions _sources/scripts/maintenance-scripts/mw_transcoder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading