class DelegatedOperationService(object): (source)
Constructor: DelegatedOperationService(repo)
Service for executing delegated operations.
Method | __init__ |
Undocumented |
Method | count |
Counts the delegated operations matching the given criteria. |
Method | delete |
Deletes all delegated operations associated with the given dataset. |
Method | delete |
Deletes the given delegated operation. |
Method | execute |
Executes the given delegated operation. |
Method | execute |
Executes queued delegated operations matching the given criteria. |
Method | get |
Returns the delegated operation with the given ID. |
Method | get |
Returns all queued delegated operations. |
Method | get |
Returns all running delegated operations. |
Method | get |
Returns all scheduled delegated operations. |
Method | list |
Lists the delegated operations matching the given criteria. |
Method | queue |
Queues the given delegated operation for execution. |
Method | rerun |
Reruns the specified delegated operation. |
Method | set |
Sets the given delegated operation to completed state. |
Method | set |
Sets the given delegated operation to failed state. |
Method | set |
Sets the pinned flag for the given delegated operation. |
Method | set |
Sets the pinned flag for the given delegated operation. |
Method | set |
Sets the progress of the given delegated operation. |
Method | set |
Sets the given delegated operation to queued state. |
Method | set |
Sets the given delegated operation to running state. |
Method | set |
Sets the given delegated operation to scheduled state. |
Async Method | _execute |
Undocumented |
Instance Variable | _repo |
Undocumented |
Deletes all delegated operations associated with the given dataset.
Parameters | |
dataset | the ID of the dataset |
Deletes the given delegated operation.
Parameters | |
doc | the ID of the delegated operation |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Executes the given delegated operation.
Parameters | |
operation | the
fiftyone.factory.repos.DelegatedOperationDocument |
log:False | the optional boolean flag to log the execution of the delegated operations |
runNone | an optional link to orchestrator-specific information about the operation |
Executes queued delegated operations matching the given criteria.
Parameters | |
operator:None | the optional name of the operator to execute all the queued delegated operations for |
delegationNone | the optional delegation target of the delegated operations to execute |
datasetNone | the optional name of the dataset to execute all the queued delegated operations for |
limit:None | the optional limit of the number of delegated operations to execute |
log:False | the optional boolean flag to log the execution of the delegated operations |
**kwargs | Undocumented |
Returns the delegated operation with the given ID.
Parameters | |
doc | the ID of the delegated operation |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Returns all queued delegated operations.
Parameters | |
operator:None | the optional name of the operator to return all the queued delegated operations for |
datasetNone | the optional name of the dataset to return all the queued delegated operations for |
Returns | |
a list of fiftyone.factory.repos.DelegatedOperationDocument |
Returns all running delegated operations.
Parameters | |
operator:None | the optional name of the operator to return all the running delegated operations for |
datasetNone | the optional name of the dataset to return all the running delegated operations for |
Returns | |
a list of fiftyone.factory.repos.DelegatedOperationDocument |
Returns all scheduled delegated operations.
Parameters | |
operator:None | the optional name of the operator to return all the scheduled delegated operations for |
datasetNone | the optional name of the dataset to return all the scheduled delegated operations for |
Returns | |
a list of fiftyone.factory.repos.DelegatedOperationDocument |
Lists the delegated operations matching the given criteria.
Parameters | |
operator:None | the optional name of the operator to return all the delegated operations for |
datasetNone | the optional name of the dataset to return all the delegated operations for |
datasetNone | the optional id of the dataset to return all the delegated operations for |
runNone | the optional run state of the delegated operations to return |
delegationNone | the optional delegation target of the delegated operations to return |
paging:None | optional
fiftyone.factory.DelegatedOperationPagingParams |
search:None | optional search term dict |
**kwargs | Undocumented |
Returns | |
a list of fiftyone.factory.repos.DelegatedOperationDocument |
Queues the given delegated operation for execution.
Parameters | |
operator | the operator name |
label:None | an optional label for the operation (will default to the operator if not supplied) |
delegationNone | an optional delegation target |
context:None | an
fiftyone.operators.executor.ExecutionContext |
metadata:None | an optional metadata dict containing properties below: - inputs_schema: the schema of the operator's inputs - outputs_schema: the schema of the operator's outputs |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Reruns the specified delegated operation.
Parameters | |
doc | the ID of the delegated operation |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Sets the given delegated operation to completed state.
Parameters | |
doc | the ID of the delegated operation |
result:None | the
fiftyone.operators.executor.ExecutionResult of the
operation |
progress:None | an optional
fiftyone.operators.executor.ExecutionProgress of the
operation |
runNone | an optional link to orchestrator-specific information about the operation |
requiredNone | an optional
fiftyone.operators.executor.ExecutionRunState required
state of the operation. If provided, the update will only be
performed if the referenced operation matches this state. |
Returns | |
|
Sets the given delegated operation to failed state.
Parameters | |
doc | the ID of the delegated operation |
result:None | the
fiftyone.operators.executor.ExecutionResult of the
operation |
progress:None | an optional
fiftyone.operators.executor.ExecutionProgress of the
operation |
runNone | an optional link to orchestrator-specific information about the operation |
requiredNone | an optional
fiftyone.operators.executor.ExecutionRunState required
state of the operation. If provided, the update will only be
performed if the referenced operation matches this state. |
Returns | |
|
Sets the pinned flag for the given delegated operation.
Parameters | |
doc | the ID of the delegated operation |
label | the label to set |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Sets the pinned flag for the given delegated operation.
Parameters | |
doc | the ID of the delegated operation |
pinned:True | the boolean pinned flag |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Sets the progress of the given delegated operation.
Parameters | |
doc | the ID of the delegated operation |
progress | the
fiftyone.operators.executor.ExecutionProgress of the
operation |
Returns | |
a fiftyone.factory.repos.DelegatedOperationDocument |
Sets the given delegated operation to queued state.
Parameters | |
doc | the ID of the delegated operation |
requiredNone | an optional
fiftyone.operators.executor.ExecutionRunState required
state of the operation. If provided, the update will only be
performed if the referenced operation matches this state. |
Returns | |
|
Sets the given delegated operation to running state.
Parameters | |
doc | the ID of the delegated operation |
progress:None | an optional
fiftyone.operators.executor.ExecutionProgress of the
operation |
runNone | an optional link to orchestrator-specific information about the operation |
requiredNone | an optional
fiftyone.operators.executor.ExecutionRunState required
state of the operation. If provided, the update will only be
performed if the referenced operation matches this state. |
Returns | |
|
Sets the given delegated operation to scheduled state.
Parameters | |
doc | the ID of the delegated operation |
requiredNone | an optional
fiftyone.operators.executor.ExecutionRunState required
state of the operation. If provided, the update will only be
performed if the referenced operation matches this state. |
Returns | |
|