<!-- # hard line break macro for HTML -->

# fiftyone.factory.repos.delegated_operation_doc

FiftyOne delegated operation repository document.

Copyright 2017-2026, Voxel51, Inc.
<br/>
[voxel51.com](https://voxel51.com/)
<br/>
<br/>

**Classes:**

| [`DelegatedOperationDocument`](#fiftyone.factory.repos.delegated_operation_doc.DelegatedOperationDocument)([operator, ...])   |    |
|-------------------------------------------------------------------------------------------------------------------------------|----|

### *class* fiftyone.factory.repos.delegated_operation_doc.DelegatedOperationDocument(operator: str = None, delegation_target: str = None, context: [ExecutionContext](fiftyone.operators.executor.md#fiftyone.operators.executor.ExecutionContext) = None, is_remote: [bool](fiftyone.core.stages.md#fiftyone.core.stages.Exists.bool) = False, rerunnable: [bool](fiftyone.core.stages.md#fiftyone.core.stages.Exists.bool) = True)

Bases: `object`

**Attributes:**

| [`num_distributed_tasks`](#fiftyone.factory.repos.delegated_operation_doc.DelegatedOperationDocument.num_distributed_tasks)   | Returns the number of distributed tasks in this operation, if any.   |
|-------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|

**Methods:**

| [`from_pymongo`](#fiftyone.factory.repos.delegated_operation_doc.DelegatedOperationDocument.from_pymongo)(doc)   |    |
|------------------------------------------------------------------------------------------------------------------|----|
| [`to_pymongo`](#fiftyone.factory.repos.delegated_operation_doc.DelegatedOperationDocument.to_pymongo)()          |    |

#### *property* num_distributed_tasks

Returns the number of distributed tasks in this operation, if any.

#### from_pymongo(doc: dict)

#### to_pymongo() → dict
