module CrystalTask::Worker

Overview

Include this module to have an async worker.

Direct including types

Defined in:

crystal_task/worker.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def logger #

[View source]
abstract def perform(args : Hash(String, JSON::Any)) #

Implement your own perform method.


[View source]

Macro Detail

macro cron(cron) #

[View source]
macro periodic(t) #

Run this job periodically


[View source]
macro queue(name) #

Modify the queue for this worker


[View source]
macro retries(retries) #

Modify the retry count


[View source]