actionhero / actionhero

Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks
https://www.actionherojs.com
Apache License 2.0
2.4k stars 259 forks source link

Tasks can define inputs #1408

Closed evantahler closed 4 years ago

evantahler commented 4 years ago

Like Actions, Tasks should define the inputs they expect.

Inputs can be:

Unlike actions, we don’t need a formatter, as the inputs should already be of the proper type, coming from the server.

We can check the inputs at ‘enqueue’ rather than at runtime. This will ensure that no task without the required inputs is enqueued.

evantahler commented 4 years ago

closed by https://github.com/actionhero/actionhero/pull/1411