> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# BatchTaskDefinition table

> Batch task definitiopns, populated from the SuperOffice.CRM.BatchProcessing.BatchTask attribute

## BatchTaskDefinition Table (244)

Batch task definitiopns, populated from the SuperOffice.CRM.BatchProcessing.BatchTask attribute

## Fields

| Name                      | Description                                                                                                                                                   | Type                            | Nullable |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | :------: |
| BatchTaskDefinition\_id   | Primary key                                                                                                                                                   | PK                              |    No    |
| name                      | Name of task (for monitoring and debugging)                                                                                                                   | String(254)                     |    No    |
| description               | Description of task (for monitoring and debugging)                                                                                                            | String(254)                     |    No    |
| isMultiPass               | Is this a multipass job (inner implementationis run repeatedly by the batch task framework)                                                                   | Bool                            |    No    |
| startInterval             | Minimum interval between successive starts; starts never overlap                                                                                              | Int                             |    No    |
| minimumSleepTime          | Minimum sleep interval between the end of one run and start of the next one                                                                                   | Int                             |    No    |
| timeout                   | Maximum allowed execution time; jobs are killed if they exceed their timeout; 0=no timeout                                                                    | Int                             |    No    |
| autoRestartCount          | Number of times the whole batch task should be restarted; -1 means infinite, which is useful for things like Travel Gateway that should 'always' be available | Int                             |    No    |
| assemblyVersion           | Version of the assembly that contains the code this batch task definition was populated from                                                                  | String(49)                      |    No    |
| registered                | Registered when                                                                                                                                               | UtcDateTime                     |    No    |
| registered\_associate\_id | Registered by whom                                                                                                                                            | FK [associate](./associate.mdx) |    No    |
| updated                   | 'heartbeat' that is updated once a minute by the batch task process                                                                                           | UtcDateTime                     |    No    |
| updated\_associate\_id    | 'heartbeat' that is updated once a minute by the batch task process                                                                                           | FK [associate](./associate.mdx) |    No    |
| updatedCount              | heartbeat' that is updated once a minute by the batch task process                                                                                            | UShort                          |    No    |

<img src="https://mintcdn.com/superofficeas/-KbDeS3ObOMH8eFq/media/loc/en/database/tables/BatchTaskDefinition.png?fit=max&auto=format&n=-KbDeS3ObOMH8eFq&q=85&s=d17eeb4bce721864b8218afb853d6031" alt="BatchTaskDefinition table relationship diagram" width="720" height="59" data-path="media/loc/en/database/tables/BatchTaskDefinition.png" />

## Indexes

| Fields                | Types                   | Description |
| --------------------- | ----------------------- | ----------- |
| name                  | String(254)             | Index       |
| name, assemblyVersion | String(254), String(49) | Index       |

## Relationships

| Table                    | Description                                                                              |
| ------------------------ | ---------------------------------------------------------------------------------------- |
| [associate](./associate) | Employees, resources and other users - except for External persons                       |
| [BatchTask](./batchtask) | Batch task request details, corresponding to the message body of a batch request message |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [BatchTask table](/en/database/tables/batchtask.md)
- [BatchTasks](/en/api/archive-providers/reference/batchtasks.md)
- [Update Batch Task](/en/api/reference/restful/agent/batch_agent/update-batch-task.md)
- [NSBatchAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSBatchAgent.md)
- [Get Batch Task Info](/en/api/reference/restful/agent/batch_agent/get-batch-task-info.md)
