module CrystalTask::Worker
Overview
Include this module to have an async worker.
Direct including types
- CronWorker
- CronWorkerTwo
- ErrorWorker
- HelloWorker
- LongRunningWorker
- PerformanceTestWorker
- PeriodicWorker
Defined in:
crystal_task/worker.crInstance Method Summary
- #logger
-
#perform(args : Hash(String, JSON::Any))
Implement your own perform method.
Macro Summary
- cron(cron)
-
periodic(t)
Run this job periodically
-
queue(name)
Modify the queue for this worker
-
retries(retries)
Modify the retry count