Search...::Tasks(3pm)
π Search...::Tasks β the whole vibe π
okay so bestie, welcome to Search::Elasticsearch::Client::7_0::Direct::Tasks β it's a Perl module (you found it in section 3pm of the manual, iykyk) and it's basically your little backstage pass to the Task Management API. β¨
β¨ VERSION β¨
This is version 7.715. Slay. π
πΈ DESCRIPTION πΈ
So like, this module hands you the methods you need to talk to the Task Management API β think listing tasks, cancelling tasks, that whole era. It's giving very "I'm in charge of the tasks" energy. π
It does Search::Elasticsearch::Role::Client::Direct, which is the role situation it's built on. Periodt.
π¦ METHODS π¦
π list()
$response = $e->tasks->list(
task_id => $task_id # optional
);
The list() method returns all running tasks β or, if you pass a task_id, it gives you info about that specific task instead. Either way you're getting the tea. π«
Query string parameters, bestie:
actionsdetailederror_tracegroup_byhumannodesparent_task_idtimeoutwait_for_completion
See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more info. π
π get()
$response = $e->tasks->get(
task_id => $task_id # required
);
The get() method returns the task with the specified ID. Note that task_id is required here β no task_id, no task. Simple as. π
Query string parameters:
error_tracehumanwait_for_completion
See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more info. π
π₯ cancel()
$response = $e->tasks->cancel(
task_id => $task_id # required
);
The cancel() method attempts to cancel the specified task_id β or, plot twist, multiple tasks. Yeah. It said what it said. π
(task_id is required again, so don't forget it!)
Query string parameters:
actionserror_tracehumannodesparent_task_idtimeout
See the task management docs <http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> for more info. π
π AUTHOR π
Enrico Zimuel <enrico.zimuel@elastic.co> β we stan. π
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2021 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page, bestie! no notes. go forth and manage those tasks. π§β¨
perl v5.32.1 Β· 2021-10-23 Β· mwah, catch you in the next manpage ππ«Ά
π¦ where this page comes from
- ubuntu jammy: libsearch-elasticsearch-perl 7.715-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms