Running Tasks
Once you have a running worker, you’ll want to run your tasks. Hatchet provides a number of ways of triggering task runs, from which you should select the one(s) that best suit(s) your use case.
- Tasks can be run, and have their results waited on
- Tasks can be enqueued without waiting for their results (“fire and forget”).
- Tasks can be run on cron schedules.
- Tasks can be triggered by events.
- Tasks can be scheduled for a later time.
Each of these methods for triggering tasks have their own uses in different scenarios, and the next few sections will give some examples of each.
These methods can be invoked directly from the workflow definition, or from other services.