Skip to content

Commit ef1b3d0

Browse files
committed
rename 'BackgroundOperation' to 'BackgroundOperationTask'
1 parent 6ad8664 commit ef1b3d0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ayon_api/_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
ActivityReferenceType,
4949
EntityListEntityType,
5050
EntityListItemMode,
51-
BackgroundOperation,
51+
BackgroundOperationTask,
5252
LinkDirection,
5353
EventFilter,
5454
EventStatus,
@@ -1261,7 +1261,7 @@ def send_background_batch_operations(
12611261
can_fail: bool = False,
12621262
wait: bool = False,
12631263
raise_on_fail: bool = True,
1264-
) -> BackgroundOperation:
1264+
) -> BackgroundOperationTask:
12651265
"""Post multiple CRUD operations to server.
12661266
12671267
When multiple changes should be made on server side this is the best
@@ -1294,7 +1294,7 @@ def send_background_batch_operations(
12941294
or 'raise_on_fail' is enabled and any operation fails.
12951295
12961296
Returns:
1297-
BackgroundOperation: Background operation.
1297+
BackgroundOperationTask: Background operation.
12981298
12991299
"""
13001300
con = get_server_api_connection()
@@ -1310,15 +1310,15 @@ def send_background_batch_operations(
13101310
def get_background_operations_status(
13111311
project_name: str,
13121312
task_id: str,
1313-
) -> BackgroundOperation:
1313+
) -> BackgroundOperationTask:
13141314
"""Get status of background operations task.
13151315
13161316
Args:
13171317
project_name (str): Project name.
13181318
task_id (str): Backgorund operation task id.
13191319
13201320
Returns:
1321-
BackgroundOperation: Background operation.
1321+
BackgroundOperationTask: Background operation.
13221322
13231323
"""
13241324
con = get_server_api_connection()

ayon_api/server_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
ServerVersion,
9292
AnyEntityDict,
9393
StreamType,
94-
BackgroundOperation,
94+
BackgroundOperationTask,
9595
)
9696

9797
VERSION_REGEX = re.compile(
@@ -1913,7 +1913,7 @@ def send_background_batch_operations(
19131913
can_fail: bool = False,
19141914
wait: bool = False,
19151915
raise_on_fail: bool = True,
1916-
) -> BackgroundOperation:
1916+
) -> BackgroundOperationTask:
19171917
"""Post multiple CRUD operations to server.
19181918
19191919
When multiple changes should be made on server side this is the best
@@ -1946,7 +1946,7 @@ def send_background_batch_operations(
19461946
or 'raise_on_fail' is enabled and any operation fails.
19471947
19481948
Returns:
1949-
BackgroundOperation: Background operation.
1949+
BackgroundOperationTask: Background operation.
19501950
19511951
"""
19521952
operations_body = self._prepare_operations_body(operations)
@@ -1977,15 +1977,15 @@ def send_background_batch_operations(
19771977

19781978
def get_background_operations_status(
19791979
self, project_name: str, task_id: str
1980-
) -> BackgroundOperation:
1980+
) -> BackgroundOperationTask:
19811981
"""Get status of background operations task.
19821982
19831983
Args:
19841984
project_name (str): Project name.
19851985
task_id (str): Backgorund operation task id.
19861986
19871987
Returns:
1988-
BackgroundOperation: Background operation.
1988+
BackgroundOperationTask: Background operation.
19891989
19901990
"""
19911991
response = self.get(

ayon_api/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class EventFilter(TypedDict):
8989
operator: Literal["and", "or"]
9090

9191

92-
class BackgroundOperation(TypedDict):
92+
class BackgroundOperationTask(TypedDict):
9393
id: str
9494
status: Literal["pending", "in_progress", "completed"]
9595
result: Optional[dict[str, Any]]

0 commit comments

Comments
 (0)