We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84db8bf commit a94898bCopy full SHA for a94898b
gooddata-flexconnect/gooddata_flexconnect/function/function_task.py
@@ -45,6 +45,14 @@ def run(self) -> Union[TaskResult, TaskError]:
45
headers=self._headers,
46
)
47
48
+ # switch task to non-cancellable state; once the code creates
49
+ # and returns the result, the task successfully executed and there
50
+ # is nothing to cancel.
51
+ #
52
+ # NOTE: if the switch finds that task got cancelled already, it
53
+ # bails and raises error.
54
+ self.switch_non_cancellable()
55
+
56
return FlightDataTaskResult.for_data(result)
57
58
def on_task_cancel(self) -> None:
0 commit comments