You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/web/background_tasks.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ The most important property of a _Task_ is its **status**, which can be:
18
18
*_`RUNNING`_: The task is currently being executed.
19
19
*_`COMPLETED`_: The task's execution finished successfully.
20
20
*_`FAILED`_: The task's execution "structurally" failed due to an "inside" property of the execution. An uncaught `Exception` would have escaped the executor's _"main"_ method.
21
-
*_`CANCELLED`_: An administrator (**`SUPERUSER`**, see [the Permission system](permissions.md)) cancelled the execution of the task, and the task gracefully terminated itself.
21
+
*_`CANCELLED`_: The task's owner or an administrator (**`PRODUCT_ADMIN`** or **`SUPERUSER`**, see [the Permission system](permissions.md)) cancelled the execution of the task, and the task gracefully terminated itself.
22
22
*_`DROPPED`_: External influence resulted in the executing server's shutdown, and the task did not complete in a graceful way.
23
23
24
24
Task lifecycle
@@ -75,8 +75,7 @@ class MyThriftEndpointHandler:
75
75
# The task's "User": the name of the user who is the actor which
76
76
# caused the execution of the task.
77
77
# The status of the task may only be queried by the relevant actor,
78
-
# a PRODUCT_ADMIN (if the task is associated with a product) or
79
-
# SUPERUSERs.
78
+
# people with access to the product, or SUPERUSERs.
80
79
"user",
81
80
82
81
# If the task is associated with a product, pass the ORM `Product`
0 commit comments