# Monitoring

> Find every process DDL ran, in one project or across projects: filter by status and type, read the log, stop a running process and find why a run failed.

Source: https://dev.delman-guide.pages.dev/monitoring

Monitoring records the work DDL runs: imports, transforms, SQL queries, exports, uploads and syncs. It lists each run's status, start time and duration, so it is the place to answer "did my sync run?", "how long did it take?" and "why did it fail?". Processes have logs; **Sync** rows do not have their own log.

<Tour id="monitoring" />

> Screenshot: The Monitoring page for all projects: a filter bar with Search Project or Node, All Status, All Type, From and To dates and Reset Filter, above a table of processes from Demo Project and Marketing Sandbox with Success and Failed statuses, process types Import, Transform and SQL Query, node names, start times and durations, and a View Log button on each row. Monitoring across projects. The newest process comes first.

## Two views of the same processes

| View | How to open it | What it lists |
|---|---|---|
| All projects | Account menu › **Monitoring**, at `/monitoring` | Your own processes, such as the runs of the nodes you created and the queries you ran, and every process of the projects that others shared with you. It has a **Project Name** column, and the search box reads **Search Project or Node**. |
| One project | Project menu › **Monitoring**, at `/projects/<id>/monitoring` | Every process of that project, whoever started it. The search box reads **Search Node**. |

:::tip[Looking for one project's runs?]
Open the project's own Monitoring. It shows the work of everyone in the project, which the all-projects view may not.
:::

## The process list

| Column | What it shows |
|---|---|
| **Project Name** | All-projects view only. Click the name to open the project. |
| **Status** | A coloured dot and the [status](#statuses). |
| **Process Type** | The kind of work. See [Process types](#process-types). |
| **Node Name** | The node the process worked on. Click it to open the Pipeline with that node selected. Empty for queries run in the [SQL Query](/sql) workbench, which belong to no node. |
| **Process Start** | How long ago it started. Hover the ⓘ for the full date and time in your time zone; on a touch screen, tap it. **N/A** while it waits in the queue. |
| **Process Duration** | How long it ran, for example *12 seconds*. Runs shorter than a second show *0 seconds*. A running process counts up to now; one that has not started shows **N/A**. |
| (last column) | **View Log**, and a red **Stop** for a process that is **Pending** or **Running**. |

- The newest process comes first, eight per page. Use ‹ and › at the bottom to page.
- Processes stay in Monitoring after their node or project is deleted. The name is then grey and in italics, and hovering it says, for example, *"cost_per_city" has been removed*.
- The list does not refresh by itself. Reload the page to see new processes and status changes.
- Without any process, it says *There is no process to show*.
- On a phone, each process is shown as a card.

### Statuses

| Status | Dot | Meaning |
|---|---|---|
| **Pending** | Grey | Queued and waiting for a free worker. Its log says *This process is currently in PENDING state and is queued for execution. It will be processed as soon as a worker becomes available.* |
| **Running** | Blue | Running now. |
| **Success** | Green | Finished without an error. |
| **Failed** | Red | Stopped with an error, or stopped by someone with **Stop**. |
| **Upstream Failed** | Yellow | Never ran, because a process before it failed, for example an action queued behind the failed transform of the same node. |

:::note[Upstream Failed nodes have no new process]
A node that shows **Upstream Failed** on the canvas, counted as **Waiting** in the [List view](/pipeline-views#list-view), was never started, so Monitoring has no new process for it: its row there is from an earlier run. Look for the **Failed** process upstream instead. [Why a node is blocked or waiting](/pipelines#why-a-node-is-blocked-or-waiting) shows how to find it on the canvas.
:::

### Process types

| Type | Recorded when |
|---|---|
| **Sync** | A source or dataset node syncs, by hand or through a [schedule](/schedules). The row names the synced node; its imports and downstream transforms have separate rows. |
| **Import** | A source node imports a table: when you add the import, sync the source node or its import, or a schedule does. One process per table, named after the node it fills. |
| **Transform** | A transform or SQL node runs: when it is created or edited, rerun, or when its inputs get new data. See [Transforms](/transforms). |
| **Action** | An action added on a node page runs. See [Actions on the node page](/transforms#actions-on-the-node-page). |
| **Export** | **Export Data** writes a node to a connection. |
| **Transfer** | A transfer node copies data to another connection. |
| **Publish** | **Publish to Cloud** publishes a node. |
| **SQL Query** | A query runs in the SQL Query workbench with **Run**. **View Data** runs nothing and adds no process. |
| **Upload File** | A file is uploaded, or replaced with **Update File**. |
| **Backup** | **Dump Data** in [Versions](/projects#dump-data) writes an earlier version of a node to a connection. |

:::caution[Sync rows have no log or working Stop button]
In this version, **View Log** on a **Sync** row opens empty details and reports *No process exists with the given ID*. **Stop** on a Pending or Running Sync row reports an error instead of stopping it. Check **Sync › Schedule sync › Report** on the node, and read the logs of its imports or downstream transforms instead.
:::

## Find a process

The filter bar is the same in both views.

> Screenshot: The Monitoring filter bar with the All Status list open, offering Pending, Running, Success, Failed and Upstream Failed, each with its coloured dot. Status and type filters take several values at once.

| Filter | What it does |
|---|---|
| Search box | Keeps the processes whose node name, or project name in the all-projects view, contains what you type. The list updates as you type; ✕ clears the box. |
| **All Status** | Tick one or more statuses. |
| **All Type** | Tick one or more process types: **Action**, **Backup**, **Export**, **Import**, **Publish**, **SQL Query**, **Transfer**, **Transform** and **Upload File**. **Sync** is not offered: selecting any type hides Sync rows. Clear this filter to see them. |
| **From**, **To** | A date and time range in your browser's time zone, shown below each field, for example *GMT+07:00*. |
| **Reset Filter** | Clears every filter. |

Changing a filter takes you back to the first page. Every filter is kept in the page address, for example `/projects/<id>/monitoring?status=failed&types=transform`, so you can bookmark a filtered view or send it to someone who can open the project. On a phone, tap **Filters** next to the search box to show the other filters; the button counts the filters in use, for example **Filters (2)**.

:::caution[From and To do not narrow the list yet]
In this version the date range is kept in the page address, but the list is not filtered by it. To find an older run, filter by status, type and name, and page back: the list is sorted newest first.
:::

> Screenshot: The Monitoring page of Marketing Sandbox filtered on the status Failed, showing the failed Transform process of cost_per_city. A project's Monitoring filtered on Failed: the place to start when something went wrong.

## Read a process log

1. Click **View Log** on the row. The log opens in a window titled with the process ID.
2. Read the six boxes at the top: **Process Type**, **Process Status**, **Node Name** ("-" for a process without a node), **Process Start**, **Process End** and **Process Duration**.
3. Read the **Technical log** below, "Complete technical details for further investigation". Each line starts with its date and time in your time zone and its level: green for INFO, yellow for WARNING, red for ERROR. The last red lines usually say what went wrong.
4. To follow a process that is still running, click ↻ (**Refresh Log**). It reloads the boxes and the log.

> Screenshot: The log window of a failed process: the boxes Process Type Combine, Process Status Failed, Node Name cost_per_city, Process Start, Process End and Process Duration, the Refresh Log and Download Log buttons, and a technical log ending in red error lines. The log of a failed transform. The red lines at the end name the error.

- The **Process Type** box uses DDL's internal name, which can differ from the list: **Combine** for a **Transform** process, **Sql Query** for a **SQL Query** process.
- A typical log starts with *Starting …* and ends with *… is completed successfully*, or with *… fails* followed by the error.
- **Download Log** saves the whole log as a `.log` file. If DDL has no log for that process yet, it reports *Could not download the error log of this process*. Older runs may no longer have a retained log.

### Share a log

While a log is open, the page address carries its process ID, for example `/monitoring?process_id=<process id>&page=1`. Copy the address and send it: whoever opens it, and may see the process, gets the same log. Closing the window removes the ID from the address. This is the best way to ask a colleague, or support, about a failed run.

## Stop a process

A process that is **Pending** or **Running** has a red **Stop** button next to **View Log**. There is no confirmation: one click stops the process, DDL confirms with a message and refreshes the list. This does not work for **Sync** rows in this version.

> Screenshot: The Monitoring page of Demo Project with a Running SQL Query process at the top and a red Stop button next to its View Log button. Stop appears only on Pending and Running processes.

| Process | What stopping does |
|---|---|
| A process of a node, such as an import or a transform | The process becomes **Failed** and so does the node. The nodes downstream become **Upstream Failed**; they run again after the node's next successful run. |
| An export | Only the export stops. |
| A SQL query from the workbench | The query is cancelled, as with **Stop Preview** in [SQL Query](/sql#run-a-query). |

:::caution[A stopped node keeps its old data]
After a stop, rerun or sync the node when you are ready, so it and the nodes below it get fresh data.
:::

### A process that never finishes

If a process stays **Running** although nothing happens, for example after a server restart, open its log. DDL then checks whether the job behind the process is still alive. If it is not, DDL marks the process **Failed** and adds *Process … is killed due to inactivity* to the log. Reload the list to see the new status, then run the work again.

## Diagnose a failed run

1. In the project's Monitoring, choose **Failed** in **All Status**.
2. Click **View Log** on the failed process and read the last red lines of the **Technical log**.
3. Match the error with the table below and fix the cause.
4. Run the work again; see [Run it again](#run-it-again).

| Error in the log | Cause | Fix |
|---|---|---|
| *relation "demo_orders" does not exist* | A node name in SQL was written without backticks, or with a schema in front | Write node names in backticks, such as `` `demo_orders` ``. See [Refer to nodes in backticks](/sql#refer-to-nodes-in-backticks). |
| An import or transfer fails with a connection error, such as a time-out, a refused login or a missing permission | The connection's address, credentials or rights | Test and fix the connection. See [When the test fails](/connections#when-the-test-fails). |
| *Process … has been stopped manually.* | Someone clicked **Stop**. | Run it again when you are ready. |
| *Process … is killed due to inactivity* | The job behind the process died, for example in a restart. | Run it again. |
| The process is **Upstream Failed** | A process it depended on failed. | Fix and run the failed one first. |

## Run it again

Monitoring has no retry button: you run the work again where it started.

| Process type | How to run it again |
|---|---|
| **Import** | On the source node, **Sync** › **Sync all** or **Retry failed imports**, or ▶ on the import card. See [Run, sync, rerun and stop](/pipelines#run-sync-rerun-and-stop). |
| **Transform**, **Action** | **Rerun** the node. DDL refuses while a node it reads is still failed, with *Retry the failed upstream node(s) first: …*; rerun those first. See [Rerun a node](/pipelines#rerun-a-node). |
| **Export**, **Publish** | Rerun the node: its exports and publishing run again after it. |
| **Transfer** | On the transfer node, ▶ on the transfer, or **Sync All** or **Sync only failed transfer** in its menu. |
| **SQL Query** | **Run** the query again in [SQL Query](/sql). |
| **Upload File** | Upload the file again with **Update File**. |

For a dataset node, use **Sync** › **Sync now**. Give Monitoring a moment after you start a run: work is queued, so the new process can take a few seconds to appear. Reload rather than starting the run twice.

## Get told about failures

- **Failure e-mails of a project.** Every failed process of the project, except queries run in the SQL Query workbench, sends an e-mail with the log attached to the addresses in **Project Settings** › **Email Notification**. See [E-mail notifications](/projects#e-mail-notifications).
- **Distribution alerts.** Where your DDL has Distribution, a distribution can e-mail a list of failed processes of a project, right away or as one summary a day. See [Send an alert when a process fails](/distribution#send-an-alert-when-a-process-fails).
- **AI Assistant.** Where your DDL has the AI Assistant, it suggests questions on the all-projects Monitoring page, such as *Which processes failed recently?* and *Why did the latest failed process fail?*, and in a project, *Why did nodes fail in this project?*. See [AI Assistant](/ai-assistant).

## Troubleshooting

| Problem | Cause and fix |
|---|---|
| A sync was started, but Monitoring shows nothing yet | Runs are queued. Wait a moment and reload; do not start the run again. |
| A process stays **Pending** | All workers are busy. It starts when one is free. |
| A process stays **Running** for far too long | Open its log: DDL checks whether it is still alive. Stop it if it hangs. |
| A process of a colleague is missing in the all-projects view | That view shows your own processes and those of projects shared with you. Open the project's Monitoring. |
| The **Node Name** of a row is grey and in italics | The node or project was deleted. Its history stays. |
| **From** and **To** do not change the list | The date range does not filter in this version. Use status, type and name. |
| A **Sync** row disappears when you choose a type | **All Type** has no Sync option. Clear it to see syncs again. |
| **View Log** on a **Sync** row says *No process exists with the given ID* | A Sync row has no process log of its own. Use the node's **Report** tab or its import and downstream process logs. |
| **Stop** on a **Sync** row reports an error | Stopping Sync rows is not supported in this version; the row stays unchanged. Do not click it repeatedly. |

## Related pages

  - [Pipeline canvas](/pipelines): Node statuses, sync, rerun and stop.
  - [Schedules](/schedules): Runs that start by themselves.
  - [SQL Query](/sql): Write node names correctly and run queries.
  - [Projects](/projects#e-mail-notifications): Get an e-mail when a run in a project fails.
