Search...::Tasks(3pm)

πŸ“¦ version 7.715, in ubuntu jammy

πŸ’– 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:

  • actions
  • detailed
  • error_trace
  • group_by
  • human
  • nodes
  • parent_task_id
  • timeout
  • wait_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_trace
  • human
  • wait_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:

  • actions
  • error_trace
  • human
  • nodes
  • parent_task_id
  • timeout

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. πŸ‘‘


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