budibase/packages/server/src/automations/index.js

13 lines
347 B
JavaScript
Raw Normal View History

const triggers = require("./triggers")
const { processEvent } = require("./utils")
/**
* This module is built purely to kick off the worker farm and manage the inputs/outputs
*/
exports.init = async function () {
// don't wait this promise, it'll never end
2021-05-04 12:32:22 +02:00
triggers.automationQueue.process(async job => {
await processEvent(job)
})
}