class documentation
class MongoDelegatedOperationRepo(DelegatedOperationRepo): (source)
Constructor: MongoDelegatedOperationRepo(collection)
Undocumented
Method | __init__ |
Undocumented |
Method | count |
Count all operations. |
Method | delete |
Delete an operation. |
Method | delete |
Delete an operation. |
Method | get |
Get an operation by id. |
Method | get |
Get all queued operations. |
Method | get |
Get all running operations. |
Method | get |
Get all scheduled operations. |
Method | list |
List all operations. |
Method | queue |
Queue an operation to be executed by a delegated operator. |
Method | set |
Sets the label for the delegated operation. |
Method | set |
Sets the pinned flag on / off. |
Method | update |
Update the progress of an operation. |
Method | update |
Update the run state of an operation. |
Constant | COLLECTION |
Undocumented |
Class Variable | required |
Undocumented |
Instance Variable | is |
Undocumented |
Method | _create |
Undocumented |
Method | _extract |
Undocumented |
Method | _get |
Undocumented |
Instance Variable | _collection |
Undocumented |
def get_queued_operations(self, operator:
str
= None, dataset_name: ObjectId
= None) -> list[ DelegatedOperationDocument]
:
(source)
¶
Get all queued operations.
def get_running_operations(self, operator:
str
= None, dataset_name: ObjectId
= None) -> list[ DelegatedOperationDocument]
:
(source)
¶
Get all running operations.
def get_scheduled_operations(self, operator:
str
= None, dataset_name: ObjectId
= None) -> list[ DelegatedOperationDocument]
:
(source)
¶
overrides
fiftyone.factory.repos.delegated_operation.DelegatedOperationRepo.get_scheduled_operations
Get all scheduled operations.
def list_operations(self, operator:
str
= None, dataset_name: str
= None, dataset_id: ObjectId
= None, run_state: ExecutionRunState
= None, delegation_target: str
= None, pinned: bool
= None, paging: DelegatedOperationPagingParams
= None, search: dict
= None, **kwargs: Any
) -> list[ DelegatedOperationDocument]
:
(source)
¶
List all operations.
def update_progress(self, _id:
ObjectId
, progress: ExecutionProgress
) -> DelegatedOperationDocument
:
(source)
¶
Update the progress of an operation.
def update_run_state(self, _id:
ObjectId
, run_state: ExecutionRunState
, result: ExecutionResult
= None, run_link: str
= None, progress: ExecutionProgress
= None, required_state: ExecutionRunState
= None) -> DelegatedOperationDocument
:
(source)
¶
Update the run state of an operation.