<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Handling_failed_tasks</id>
	<title>Handling failed tasks - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Handling_failed_tasks"/>
	<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Handling_failed_tasks&amp;action=history"/>
	<updated>2026-10-23T19:25:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>https://wiki.dafne.bi-services.sk/index.php?title=Handling_failed_tasks&amp;diff=67&amp;oldid=prev</id>
		<title>Dafne: Documentation import</title>
		<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Handling_failed_tasks&amp;diff=67&amp;oldid=prev"/>
		<updated>2026-08-06T13:36:46Z</updated>

		<summary type="html">&lt;p&gt;Documentation import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:monitor_failed_task.png|thumb|right|A task in Error status]]&lt;br /&gt;
This page describes what to do when a task ends in &amp;#039;&amp;#039;&amp;#039;Error&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Cannot connect&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Invalid&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;Warning&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Finding the failure ==&lt;br /&gt;
Failed tasks are visible in three ways:&lt;br /&gt;
* the &amp;#039;&amp;#039;&amp;#039;Error&amp;#039;&amp;#039;&amp;#039; counter on the processing in the Active processings panel&lt;br /&gt;
* the status of the individual task in the task list&lt;br /&gt;
* the status filter chips, which restrict the list to one status group&lt;br /&gt;
&lt;br /&gt;
If you know part of the error text but not which task produced it, use the &amp;#039;&amp;#039;&amp;#039;Messages&amp;#039;&amp;#039;&amp;#039; button in the filter bar to search the run messages directly.&lt;br /&gt;
&lt;br /&gt;
== Understanding what happened ==&lt;br /&gt;
Select the failed task and work through its detail panel:&lt;br /&gt;
&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Runs tab.&amp;#039;&amp;#039;&amp;#039; Each execution attempt is listed with its messages. Read the message from the most recent run — this is the error returned by the target system. The badge on the tab shows how many attempts have been made.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Info tab.&amp;#039;&amp;#039;&amp;#039; Check &amp;#039;&amp;#039;&amp;#039;Try count&amp;#039;&amp;#039;&amp;#039; (shown as &amp;#039;&amp;#039;n of m&amp;#039;&amp;#039;). If the task is configured to retry, a single failure may not be final. Compare the &amp;#039;&amp;#039;&amp;#039;Last duration&amp;#039;&amp;#039;&amp;#039; with the &amp;#039;&amp;#039;&amp;#039;Avg duration&amp;#039;&amp;#039;&amp;#039;: a task that failed after running far longer than usual points at a timeout or a lock rather than a data problem.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Query tab.&amp;#039;&amp;#039;&amp;#039; The &amp;#039;&amp;#039;&amp;#039;executed query&amp;#039;&amp;#039;&amp;#039; shows the statement after placeholder substitution — the text actually sent to the target. This is where an incorrect parameter value becomes visible. Use &amp;#039;&amp;#039;&amp;#039;Copy with parameters&amp;#039;&amp;#039;&amp;#039; to reproduce the call by hand.&lt;br /&gt;
&lt;br /&gt;
== Choosing the response ==&lt;br /&gt;
&lt;br /&gt;
=== Retry the task ===&lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Repeat&amp;#039;&amp;#039;&amp;#039; when the cause is transient and is likely to have cleared: a deadlock, a temporary shortage of resources, a target system that was briefly unavailable. The task waits for its dependencies and for resource limits exactly as it would normally.&lt;br /&gt;
&lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Force repeat&amp;#039;&amp;#039;&amp;#039; when the task should run as soon as possible without waiting for the normal constraints. Because it bypasses those constraints, it is the right choice when you have established that the blocking condition no longer applies — and the wrong choice as a routine first response.&lt;br /&gt;
&lt;br /&gt;
If a task fails repeatedly for the same predictable reason, such as source data that arrives late, configure retries on the task definition rather than repeating it by hand each time. See [[Task]].&lt;br /&gt;
&lt;br /&gt;
=== Mark the task as complete ===&lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Set complete&amp;#039;&amp;#039;&amp;#039; when the work has been carried out another way — typically a manual correction or a load performed directly against the target. The task is recorded as &amp;#039;&amp;#039;Manual finished&amp;#039;&amp;#039; and treated as successful, so tasks depending on it will start.&lt;br /&gt;
&lt;br /&gt;
This action asserts that the task&amp;#039;s output exists. Do not use it to clear a red counter; dependent tasks will run against data that was never produced.&lt;br /&gt;
&lt;br /&gt;
=== Hold the task ===&lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Hold&amp;#039;&amp;#039;&amp;#039; when a task must not run for now but you do not want to disable its definition — for example while waiting for a fix, or when a source system is known to be down for the rest of the day. The task stays in the processing but is not picked up. Release it later with &amp;#039;&amp;#039;&amp;#039;Unhold&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Holding is preferable to repeatedly cancelling a task that keeps being retried.&lt;br /&gt;
&lt;br /&gt;
=== Cancel a running task ===&lt;br /&gt;
Use &amp;#039;&amp;#039;&amp;#039;Cancel&amp;#039;&amp;#039;&amp;#039; to stop a task that is still running — one that has hung, or that you know is working on bad input.&lt;br /&gt;
&lt;br /&gt;
Whether the task actually stops depends on the connection type and on how the target system responds. Depending on that, the task may stop, may end in error, or may continue to completion if the connection type does not support cancellation. Check the status afterwards rather than assuming the cancel took effect.&lt;br /&gt;
&lt;br /&gt;
=== Repair ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Repair&amp;#039;&amp;#039;&amp;#039; starts a repair run and is offered only for connection providers that support it. Where it is available, it is the appropriate response to a partially applied change, because it lets the provider resolve the inconsistency rather than re-running the whole task.&lt;br /&gt;
&lt;br /&gt;
== Warnings ==&lt;br /&gt;
A task in &amp;#039;&amp;#039;&amp;#039;Warning&amp;#039;&amp;#039;&amp;#039; status has completed. The execution reported a condition configured to be treated as a warning rather than an error — for a shell script, this is a specific configured return value; see [[shell-script-connection]].&lt;br /&gt;
&lt;br /&gt;
Dependent tasks are not blocked by a warning. Read the message in the Runs tab and decide whether the run needs intervention. Warnings that appear every day usually mean the threshold is set wrongly, not that there is a daily problem.&lt;br /&gt;
&lt;br /&gt;
== Invalid status ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Invalid&amp;#039;&amp;#039;&amp;#039; is a technical status that occurs when the executor stops while a task is running or prepared. It does not indicate a problem with the task itself: the executor could not record how the run ended.&lt;br /&gt;
&lt;br /&gt;
Before repeating an Invalid task, establish whether the work actually completed on the target system. The executor lost track of the run; the target may well have finished it. Repeating without checking can duplicate the work.&lt;br /&gt;
&lt;br /&gt;
== Notifications ==&lt;br /&gt;
Operators assigned to a task, or to its group, are notified when it fails. Notification is sent only after the last automatic retry has been exhausted, so a task configured with retries does not generate a notification on its first failure. See [[Operator]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Task and processing statuses]]&lt;br /&gt;
* [[Investigating a stalled processing]]&lt;br /&gt;
* [[Reprocessing data]]&lt;/div&gt;</summary>
		<author><name>Dafne</name></author>
		
	</entry>
</feed>