WiP on permissions
Doesn't run. This commit is just to backup the changes.
This commit is contained in:
parent
5df444f641
commit
89c9615592
37 changed files with 913 additions and 366 deletions
|
@ -3,6 +3,7 @@
|
|||
const log = require('npmlog');
|
||||
const reports = require('../models/reports');
|
||||
const executor = require('./executor');
|
||||
const contextHelpers = require('../lib/context-helpers');
|
||||
|
||||
let runningWorkersCount = 0;
|
||||
let maxWorkersCount = 1;
|
||||
|
@ -99,7 +100,7 @@ async function tryStartWorkers() {
|
|||
isStartingWorkers = false;
|
||||
}
|
||||
|
||||
module.exports.start = async reportId => {
|
||||
module.exports.start = async (reportId) => {
|
||||
if (!workers[reportId]) {
|
||||
log.info('ReportProcessor', 'Scheduling report id: %s', reportId);
|
||||
await reports.updateFields(reportId, { state: reports.ReportState.SCHEDULED, last_run: null});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue