Closed aars closed 9 years ago
lib/job-runner.js implements a wrapper function for backend.updateJobProperty that allows omitting the meta parameter. Here: https://github.com/joyent/node-workflow/blob/master/lib/job-runner.js#L109
lib/job-runner.js
backend.updateJobProperty
meta
lib/runner.js does not have this wrapper function and breaks on retrying jobs since no callback parameter is given.
lib/runner.js
callback
This could be fixed in the node-workflow-pg-backend, since node-workflow-redis-backend does so as well (https://github.com/kusor/node-workflow-redis-backend/blob/master/lib/workflow-redis-backend.js#L843). I will submit a PR to that project.
node-workflow-pg-backend
node-workflow-redis-backend
But, there is code in this project that tries to handle this. Should remove this behaviour from this project and depend on the backend to handle this?
lib/job-runner.js
implements a wrapper function forbackend.updateJobProperty
that allows omitting themeta
parameter. Here: https://github.com/joyent/node-workflow/blob/master/lib/job-runner.js#L109lib/runner.js
does not have this wrapper function and breaks on retrying jobs since nocallback
parameter is given.This could be fixed in the
node-workflow-pg-backend
, sincenode-workflow-redis-backend
does so as well (https://github.com/kusor/node-workflow-redis-backend/blob/master/lib/workflow-redis-backend.js#L843). I will submit a PR to that project.But, there is code in this project that tries to handle this. Should remove this behaviour from this project and depend on the backend to handle this?