Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Apache Druid TaskTableActionDialog

From Leeroopedia


Knowledge Sources
Domains Web_Console, Tasks
Last Updated 2026-02-10 10:00 GMT

Overview

TaskTableActionDialog is a React dialog component that provides a tabbed interface for viewing task status, reports, spec, and logs for a specific Druid ingestion task.

Description

The TaskTableActionDialog component wraps the generic TableActionDialog and configures four tabs: Status (showing the task status JSON), Reports (showing ingestion stats and errors or MSQ stages), Spec (showing the task payload), and Log (showing the task log with optional tailing for running tasks). Each tab fetches data from the appropriate Indexer API endpoint using the task ID. The component uses ShowJson, ShowJsonOrStages, and ShowLog components to render the respective content with download capabilities.

Usage

Used from the tasks view when a user clicks on a specific task to inspect its details, review its execution status, examine the submitted spec, or read its log output.

Code Reference

Source Location

Signature

type TaskTableActionDialogTab = 'status' | 'report' | 'spec' | 'log';

interface TaskTableActionDialogProps {
  taskId: string;
  actions: BasicAction[];
  status: string;
  onClose(): void;
}

export const TaskTableActionDialog = React.memo(function TaskTableActionDialog(
  props: TaskTableActionDialogProps,
): JSX.Element;

Import

import { TaskTableActionDialog } from 'web-console/src/dialogs/task-table-action-dialog/task-table-action-dialog';

I/O Contract

Inputs

Name Type Required Description
taskId string Yes The task identifier used to construct API endpoint paths
actions BasicAction[] Yes Array of action definitions available for the task (displayed in the dialog sidebar)
status string Yes Current task status string; used to determine whether log tailing is enabled (enabled when "RUNNING")
onClose () => void Yes Callback invoked when the dialog is closed

Outputs

Name Type Description
rendered dialog JSX.Element A TableActionDialog with four tabs (Status, Reports, Spec, Log) each fetching from /druid/indexer/v1/task/{taskId}/ endpoints

Usage Examples

Viewing Task Details

<TaskTableActionDialog
  taskId="index_wikipedia_2024-01-01T00:00:00.000Z"
  actions={[
    { icon: 'cross', title: 'Kill task', onAction: () => killTask(taskId) },
  ]}
  status="RUNNING"
  onClose={() => setSelectedTask(null)}
/>

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment