Task

A Task is the executable unit in Polysync. It is a configured instance of a Job that captures:

  • The Job (and therefore the Platform) it runs against.
  • Parameter values — overrides for the Job's parameter schema.
  • Schedules — zero or more schedules describing when the Task should run automatically, built visually or written as cron expressions.
  • Dependencies — other Tasks, on any platform or cloud, whose outcome starts this Task, optionally with parent-output → child-input mappings.
  • Retry policy — automatic retries on failure with configurable backoff.
  • Priority — execution ordering relative to other queued Tasks.
  • Contention profiles — concurrency / rate-limit profiles that gate dispatch.
  • Alerts — optional messages to Microsoft Teams, Slack or a webhook when a run fails, succeeds or recovers.

Editor tabs

Tab What you configure
General Task name, Platform, Job Type, Job (locked after save).
Settings Parameter values inherited from the Job's schema. Supports literals, vault references, and parent-output mappings.
Dependencies Upstream Tasks whose outcome triggers this Task. Includes a visual dependency diagram with a Split / Stacked view.
Scheduling Zero or more schedules, each with its own timezone and on/off switch.
Runtime Settings Priority, retry configuration, execution timeout, and per-task concurrency cap.
Alerts Whether to send a message to Microsoft Teams, Slack or a webhook when a run's final attempt fails, the Task succeeds, or it recovers. Off by default. See Notifications.

Lifecycle of a run

  1. A run is triggered in one of four ways: a schedule fires (Scheduled), someone uses Run Once (Manual), a parent Task finishes (Dependency), or a failed run is retried (Retry).
  2. A TaskRun is created and placed in the Queued state.
  3. The Dispatcher claims the run once its dependencies are met and any linked contention profiles allow it.
  4. The run moves to Running, then ends as Completed, Failed, Cancelled, or TimedOut, with a status-history record at each transition.
  5. On failure, automatic retries are queued up to the Task's retry limit.

Every run and its history can be followed in Monitoring.

Run Once (manual execution)

The Run Once action queues a single immediate execution of a Task with trigger type Manual. Useful to:

  • Validate a freshly-created or freshly-modified Task before its schedule fires.
  • Re-run an ad-hoc workload.
  • Smoke-test a platform connection through a real artefact.

The AI Copilot exposes this via the run_task_once tool. Because a run consumes resources in your own cloud account, the Copilot proposes the run and waits for you to approve it — see Polysync Copilot.

Parameter mapping

Task parameter values (Settings tab) start from the defaults defined on the Job and can be overridden as:

  • Literals — pinned at task-edit time.
  • Vault references — vault://<vault>/<secret> resolved at runtime, so the secret value is never stored on the Task.
  • Parent outputs — set per dependency, copying a named output of a parent run into a named input of this Task.

Parent-output mapping works across platforms and clouds. When a parent run finishes, its output values are recorded; when the child is released, the mapped values are applied on top of the child's own parameter values before the child's job is called. This replaces the glue code (webhooks, queues, shared tables) usually needed to pass a value from, say, an Azure Data Factory pipeline into a Databricks notebook.

Dependencies

Dependencies connect Tasks into a directed graph (DAG). A parent and child can run on different platforms, and in different clouds — for example a Google Cloud Composer DAG can start an Azure Data Factory pipeline.

Trigger conditions

Each dependency has a trigger condition that decides which parent outcomes start the child:

Trigger The child is released when the parent run…
On Success ends as Completed.
On Failure ends as Failed. Use this for clean-up Tasks, or for an alerting Task of your own. To post a message to Microsoft Teams, Slack or a webhook, use the Task's Alerts tab instead — see Notifications.
On Completion finishes at all — Completed, Failed, or TimedOut.

A Cancelled parent run does not release any child.

Multiple parents

A Task with several parents waits until every one of its dependencies is satisfied, then runs once. It does not run once per parent.

Each parent run is used by the child only once. When the child starts, it takes the oldest unused qualifying run of each parent. If one parent runs twice before another finishes, its second run is kept for the child's next run.

Parent runs are paired in the order they arrive. Polysync does not match them by batch ID or business date. If every parent must belong to the same batch, pass the batch or date as a parameter (see Parameter mapping above) and check it in the job.

Circular dependencies

The dependency editor rejects a Task depending on itself and any link that would create a cycle (A → B → A, or a longer loop), before the change is saved.

Dependency diagram

The Dependencies tab shows an editable list of upstream and downstream Tasks alongside an interactive diagram. In the diagram you can:

  • Switch between direct dependencies and the full recursive graph.
  • Zoom in and out, fit the graph to the screen, and refresh it.
  • See parent and child counts at a glance.

Use the Split / Stacked toggle to view the list and diagram side by side or one above the other. On narrow screens the view is always stacked.

Scheduling

Schedules are built with a visual schedule builder, so there is no cron syntax to learn. You answer How often should this run? and refine from there:

Frequency Options
Every few seconds Every N seconds.
Every minute(s) Every minute or every N minutes.
Every hour(s) Hourly at a chosen minute, every N hours, or within an hour range.
Daily A time of day.
Weekly One or more days of the week, at a time.
Monthly Specific days of the month, specific months, the Nth weekday (for example the 2nd Tuesday), the last occurrence of a weekday, the last day or last weekday, the nearest weekday to a date, or a number of days before month end.
Custom Write your own cron expression.

While you build a schedule the editor shows:

  • A plain-English summary of what the schedule does.
  • A preview of the next three run times.
  • The time zone the schedule follows. Each schedule has its own time zone, so a Task can follow local business hours without manual UTC conversion.

A Task can have as many schedules as you need, and each can be switched on or off independently — for example a weekday schedule and a separate month-end schedule.

Custom expressions use the Quartz cron format with six or seven fields: Second Minute Hour DayOfMonth Month DayOfWeek [Year].

If a schedule fires while an earlier run of the same Task is still active, the Task's Max Concurrent Runs setting decides whether the new run is allowed (see below).

Runtime Settings

Task Priority

Sets the dispatch order when multiple Tasks are queued simultaneously. Higher-priority Tasks are claimed by the Dispatcher before lower-priority ones.

Retry Configuration

Field Description
Retry Enabled Toggle automatic retry on failure.
Max Retry Attempts How many times to retry before marking the run Failed.
Backoff Strategy Fixed — same delay each time. Linear — delay × attempt number. Exponential — delay doubles each attempt.
Initial Retry Delay (seconds) Base delay before the first retry (and the multiplier for Linear/Exponential).
Max Retry Delay (seconds) Cap on how large the calculated delay can grow.

Execution & Concurrency

Field Description
Execution Timeout (seconds) Maximum wall-clock time a single run may take before being terminated. Leave empty for no timeout.
Max Concurrent Runs Maximum simultaneous active runs of this specific Task. Use 1 to enforce sequential execution. Leave empty for unlimited. A run that would exceed the cap is rejected rather than queued. This is independent of any linked Contention Profiles, which manage shared capacity across many Tasks.

Alerts

The Alerts tab, after Runtime Settings, sends a short message to Microsoft Teams, Slack or a webhook when a run ends the way you choose: the final attempt fails, the Task succeeds, or it succeeds after a failure. Alerts are off by default, and only an administrator can change them. They are saved with the Task.

With retries on, Polysync waits for the last retry before it sends a failure alert. Failures can be sent one by one or grouped into one message every 5, 15 or 60 minutes. Messages show the task, job and platform names, never the error text.

Channels are set up once in Setup, under NotificationChannel. See Notifications.

Retries and the Monitoring Agent

The retry settings above are Polysync's own: they decide what the platform is asked to run again when a task fails, and they apply whether or not the agent is on. The Monitoring Agent reads the retry history when it diagnoses a failure, and it reports whether a retry is safe for the class of failure it found.

Agent retries are a separate mechanism. They do not exist at level 1 (Observe), and when they arrive they will only propose or perform what the organisation has authorised. The task's own settings are unchanged by the agent.

See When is a retry safe?.

Best practices

  • Always Run Once a new Task before scheduling it.
  • Keep Max Retry Attempts conservative (1–3); use contention profiles to absorb platform quota spikes instead of unbounded retries.
  • Use Exponential backoff for platform calls that may be transiently throttled; use Fixed for predictable downstream services.
  • Set Max Concurrent Runs = 1 for Tasks that write to a shared resource that does not tolerate parallel writes.
  • Use dependencies + parent-output mapping rather than embedding values from upstream tasks into Task parameters.