Closed TomKaltz closed 8 years ago
I have worked around this by cloning the required task like...
var checkCanWrite = require('../tasks/checkCanWrite')
var checkExists = require('../tasks/checkExists')
var transcodeFile = require('../tasks/transcodeFile')
var killPid = require('../tasks/killPid')
var killPid2 = Object.assign({},killPid)
module.exports = {
name: 'video transcode',
chain: [checkExists,checkCanWrite,transcodeFile],
timeout: 7200,
onError: [killPid],
onCancel: [killPid2]
}
I am trying to do...
When I try to insert this workflow into the database using
factory.workflow()
I get the errorTask "body" must be a function
.I am using
killPid
task for bothonError
andonCancel
. If I remove theonCancel
line from my workflow, no error occurs.