Skip to main content
Version: 0.3.0

Tasks

Tasks (/tasks) stores task definitions in the registry. Each task reads a source stream, runs processing or detection logic, and writes to one or more sink streams.

A definition does not process live traffic by itself. It runs only when a pipeline references the task and that pipeline is assigned and deployed to a Core (Pipelines — Deploy, Sync, and Remove). Background concepts: Core concepts — Tasks.

What is a task?​

AspectDescription
InputOne source stream (events enter the task from this stream).
LogicProcessing mode: one inline PDL pipeline per event. Detection mode: one or more saved queries / rules, evaluated independently.
OutputOne or more sink streams (task results are published here).
PlacementTask ids appear in pipeline task_ids in definition order (Pipelines).
RuntimeThe engine starts and schedules the task after deployment; activation uses the Runtime icons on this table (Runtime).

Processing vs detection​

ModeWhen to useQuery source
ProcessingParse, filter, enrich, route, aggregate—typical streaming transforms.Inline PDL in the task form (PDL Query). One program per task; the UI submits it as a single entry in the task’s query list.
DetectionMultiple independent conditions (rules, signatures, policy packs).Saved queries from Queries. Select one or more, reorder with arrows. Each rule is evaluated separately; match semantics follow detection mode (Detection mode).

Choosing a mode: use processing when a single ordered PDL string is enough. Use detection when you need several named saved queries maintained under Queries.

Tasks list​

Open Pipelines → Tasks (/pipelines/tasks). Use Create for a new definition. View, Edit, Clone, and Delete are items in the record menu (...). Filters sit under column headers; the footer shows counts and paging.

Create → Create a task.

Tasks list: search, Create, registry upload and download, column filters
The Tasks list.

These tables share one layout: Search and Create in the toolbar, then a grid with filters on the row under the headers. On Pipelines, one Download / Upload pair for registry JSON sits on the right of the tab strip (a full bundle can be imported from any tab). On Services, Service Clients sits on the right of the tab strip.

Record menu. View, Edit, Clone, and Delete are items in the record menu (...) on each row. They are not icons beside the checkbox.

Row icons. Icons beside the checkbox sit in bordered groups:

  • Config — Sync, Deploy, and Remove. Sync is "on", Deploy is "to", and Remove is "from"; the label names the object, for example Deploy Config to cores or Remove Pipeline from cores. Sync shows when the row needs deploy, Deploy when a target is left, and Remove when something is assigned.
  • Runtime (Pipelines, Sources, Tasks, Sinks) — Start, Stop, and Restart icon buttons. They apply to the assigned cores in the matching state: Start where it is not running, Stop and Restart where it is running. Stop and Restart ask you to confirm.

There is no Core Actions column and no Config Actions column.

Assignments (Pipelines, Sources, Tasks, Sinks, Lookup Connectors). Each assigned Core or Lookup is a chip on the entity row, not a repeated row in the table. Hover a chip to see its deployed time. A pipeline chip lists each source, task, and sink status. A source, task, or sink chip shows that one status. The hover adds Needs sync when that assignment needs deploy. Created Time and Updated Time sit after Assignments.

Bulk delete. Select rows, then Delete Selected: the red outline button, the same height as the other toolbar buttons.

Columns. Drag a header border to resize a column; double-click the border to fit the content. Every data column can collapse with the control in its header, except the last open data column. Closed columns sit together before Actions. Reset table view clears dragged widths and your open/closed column choices. Long text shows more as the column widens; there is no hover tooltip on truncated text. Status and assignment tooltips stay.

Table modals. A modal whose body is a table (Process config, Lookup Tables, Lookup Connectors, LDAP) has a Full page control in its header. Service Clients does not.

ColumnDescription
IDStable task id in the registry and API.
NameHuman-readable task name.
Modeprocessing or detection.
Source StreamStream the task reads from.
Sink StreamsStreams the task writes to (one or more).
EnabledWhether the task may run when the engine schedules it.
AssignmentsOne chip per assigned Core; hover shows deployed time and this task's status.
Created Time / Updated TimeAudit timestamps, after Assignments.

Create a task​

  1. Choose a unique Task Name and optional Description.
  2. Select Mode — processing or detection (cannot change later; see Editing constraints).
  3. Select the Source Stream and one or more Sink Streams (must align with connector wiring; see Streams).
  4. Processing: enter the PDL Query inline. Detection: pick saved Queries and order them.
  5. Set Enabled as needed; expand Advanced Settings only if your deployment exposes runtime tuning (workers, buffering, batching, aggregation-related options).
  6. Save the task definition.
  7. Add this task to a pipeline in the desired order, then assign and deploy it from Pipelines.

Detection mode​

Create New Task modal with Mode Detection
Create Task in Detection mode.

Processing mode​

Create New Task modal with Mode Processing
Create Task in Processing mode.

Form fields​

FieldMeaning
Task NameRequired display label; registry id is derived from the name. Must be unique among tasks.
Modeprocessing or detection; drives which query UI you see.
Source StreamRequired input stream id.
Sink StreamsRequired one or more output stream ids.
EnabledBoolean; default allows scheduling when the pipeline is active.
Queries (detection)One or more saved query ids, ordered; at least one required.
PDL Query (processing)Single inline PDL string; required in processing mode.
DescriptionOptional operator notes.
Advanced SettingsWhen shown, controls runtime-oriented options (for example workers, buffering, batching, aggregation-related knobs exposed by your build). These affect execution after deployment—keep defaults unless you are tuning performance or capacity. Values are stored in task runtime configuration (for example task.config on the Core side).

A full task shape—including optional advanced blocks—appears in the sample registry: padas-registry-quickstart.json.

Required configuration​

ItemRequirement
NameRequired; unique in the registry.
ModeRequired: processing or detection.
Source streamRequired; must reference an existing stream id.
Sink streamsRequired; at least one sink stream id.
Queries / PDLDetection: at least one saved query. Processing: exactly one inline PDL definition.

Streams must match how source and sink connectors are wired for the pipelines that will use this task (Streams, Sources, Sinks).

Runtime and pipeline relationship​

  • A task definition is configuration only; it is not live execution.
  • The task must be listed in a pipeline’s ordered task_ids so the engine knows where it sits in the workflow (Pipelines).
  • That pipeline must be assigned to a Core and deployed from Pipelines before runtime processes the path.
  • The task may still need Start from its Runtime icons.
  • Source and sink stream ids must stay consistent with connector and stream topology or events will not flow as expected.

Editing constraints​

Note: After create, the UI treats Task Name, Mode, Source Stream, and Sink Streams as read-only on Edit. To change them, clone the task or recreate it, then update pipelines to reference the new id.

Do not delete a task that is still referenced by an active or deployable pipeline. Remove the task from every pipeline’s task_ids (or delete unused pipelines) first.