- Clone this repo
- Run
composer update
- Create local config file (see Config for details)
- Run the script with the local config file:
./bin/parallel-runjobs-service --config ./config.yaml
Once you are done with the development, you can create a build using the following steps:
- Compile the PHAR file using the following command:
see https://github.com/humbug/box for installation and usage of
box compile
box
- That will create a PHAR file in
build/
directory. - Commit your changes
- Clone this repo
git clone {URL} /opt/parallel-runjobs-service cd /opt/parallel-runjobs-service
- Create local config file (see Config for details) - must configure Database connection (for management wiki (w))
- Add service
- Run the following command to add the service:
./add-init.d-service.sh
- Start the service:
service wiki-runjobs start
- Check the status of the service:
service wiki-runjobs status
- Check the logs of the service:
tail -f /var/log/farm-runjobs.log
- Run the following command to add the service:
name | default value | accepted values | description |
---|---|---|---|
wiki:type | standalone |
farm , standalone |
type of the bluespice edition |
wiki:path | - (mandatory) | absolute path | bluespice installation path (also in case of farm, path to w ) |
environment:php | /usr/bin/php |
string | Path to PHP executable |
runjobs:maxtime | 30 |
positive integer | Maximum life time of a runJobs.php (Per wiki, per cycle) - Seconds |
runjobs:maxjobs | 50 |
positive integer | Max number of jobs to execute per cycle |
runjobs:maxparallel | 1 /10 |
positive integer | Maximum number parallel processes (only applicable to farm) |
farm.exclude_instances | [] |
array of valid wiki farm instance names | contains list of farm instances name for which the runjobs should executed (has priority over includes, ie. If instance is specified in both include and exclude, it will be excluded) |
farm.include_instances | [] |
array of valid wiki farm instance names | contains list of farm instances name for which the runjobs should be run, if left empty, all the farm instances will be considered except the ones in exclude_instances list |
database | can be ommited competely for standalone - not used | string | Database server |
database.dbserver | localhost |
string | Database server |
database.dbname | - (mandatory for farm) | string | Name of management database for farms) |
database.dbuser | - (mandatory for farm) | string | Database user |
database.dbpassword | - (mandatory for farm) | string | Database password |
database.dbprefix | (empty) | string | Database prefix |
database.dbport | 3306 | integer | Database port |