An asynchronous task runner built to be easy to use, safe and scalable.
An asynchronous task runner built to be easy to use, safe and scalable. Powered by Node.js and TypeScript.
It's a class that knows how to run a Task.
Every new TaskRunner
is registered using a new unique name and it's used to match which Tasks
the runner can handle.
A task is an instruction of something that has to be done at some time. Each task carries within the following information:
TaskRunner
The queue holds a list of Tasks
that are waiting to be processed.
By default Yago supports two queue Implementation: InProcess and Redis.
InProcessQueue
: Useful when there's only one Yago instance and it's okay to lose the queue in case of a service outage.RedisQueue
: The safer and best option for a bigger Yago implementation. Can handle cluster scenarios.