class
Meilisearch::Crystal::Tasks
- Meilisearch::Crystal::Tasks
- Meilisearch::Crystal::API
- Reference
- Object
Overview
Task lookup and filtered cursor-paginated listing operations.
Defined in:
meilisearch/crystal/tasks.crInstance Method Summary
-
#get(uid : Int32 | Int64) : Task
Fetches a single task by uid, raising
Errorif it does not exist. -
#get?(uid : Int32 | Int64) : Task | Nil
Fetches a single task by uid, returning
nilif it does not exist. - #list(uids : Array(Int64) | Nil = nil, batch_uids : Array(Int64) | Nil = nil, statuses : Array(BasicTask::Status) | Nil = nil, types : Array(BasicTask::Type) | Nil = nil, index_uids : Array(String) | Nil = nil, limit : Int32 | Nil = nil, from : Int64 | Nil = nil, reverse : Bool | Nil = nil, after_enqueued_at : Time | Nil = nil, before_enqueued_at : Time | Nil = nil, after_started_at : Time | Nil = nil, before_started_at : Time | Nil = nil, after_finished_at : Time | Nil = nil, before_finished_at : Time | Nil = nil) : List(Task)
Instance methods inherited from class Meilisearch::Crystal::API
client : Client
client,
http(*args, **options)http(*args, **options, &) http
Constructor methods inherited from class Meilisearch::Crystal::API
new(client : Client)
new
Macros inherited from class Meilisearch::Crystal::API
pass(*methods)
pass
Instance Method Detail
Fetches a single task by uid, raising Error if it does not exist.
Fetches a single task by uid, returning nil if it does not exist.
def list(uids : Array(Int64) | Nil = nil, batch_uids : Array(Int64) | Nil = nil, statuses : Array(BasicTask::Status) | Nil = nil, types : Array(BasicTask::Type) | Nil = nil, index_uids : Array(String) | Nil = nil, limit : Int32 | Nil = nil, from : Int64 | Nil = nil, reverse : Bool | Nil = nil, after_enqueued_at : Time | Nil = nil, before_enqueued_at : Time | Nil = nil, after_started_at : Time | Nil = nil, before_started_at : Time | Nil = nil, after_finished_at : Time | Nil = nil, before_finished_at : Time | Nil = nil) : List(Task)
#