2018-08-09 04:07:15 +00:00
|
|
|
require('../core/worker')
|
|
|
|
|
|
|
|
/* global WIKI */
|
|
|
|
|
2018-08-20 05:02:57 +00:00
|
|
|
WIKI.models = require('../core/db').init()
|
|
|
|
|
2018-08-09 04:07:15 +00:00
|
|
|
module.exports = async (job) => {
|
|
|
|
WIKI.logger.info(`Rendering page ${job.data.path}...`)
|
|
|
|
|
|
|
|
try {
|
|
|
|
WIKI.logger.info(`Rendering page ${job.data.path}: [ COMPLETED ]`)
|
|
|
|
} catch (err) {
|
|
|
|
WIKI.logger.error(`Rendering page ${job.data.path}: [ FAILED ]`)
|
|
|
|
WIKI.logger.error(err.message)
|
|
|
|
}
|
|
|
|
}
|