class Meilisearch::Crystal::Tasks

Overview

Task lookup and filtered cursor-paginated listing operations.

Defined in:

meilisearch/crystal/tasks.cr

Instance Method Summary

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

def get(uid : Int32 | Int64) : Task #

Fetches a single task by uid, raising Error if it does not exist.


[View source]
def get?(uid : Int32 | Int64) : Task | Nil #

Fetches a single task by uid, returning nil if it does not exist.


[View source]
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) #

[View source]