Closed tranqy closed 8 years ago
You don't need to extend from Nodal.Task, and shouldn't at all. Apologies for the template being outdated. :) Will fix.
Great thanks!
This is going to come in as a bugfix later today. Will close then.
Should be fixed now in https://github.com/keithwhor/nodal/commit/3d71acbf3b140a65cb3f8f358934fad71b6b7716
When creating a task on a new nodal setup things don't work as expected.
On a new project I generated a task
When I run that task there's an reference error.
If I add an import for fxn in scheduler.js the error changes
The docs for task say they don't need to extend Task
http://www.nodaljs.com/static/docs/index.html#Task
So when I removed extends task the task fires but errors on a missing callback.. which can be gated..
How should this be working? I expected to be able to run the default worker and run, but it doesn't, which makes me unsure how to proceed with custom tasks. Should a callback be provided by nodal? What is the purpose? Is there documentation somewhere I missed?