Default agents

Version: 10.4

The Cortex Processing Engine (Processing Engine) includes three default agents:

  • Task agent (TaskAgent)

  • Task cleanup agent (TaskCleanupAgent)

  • Blob storage cleanup agent (BlobStorageCleanupAgent)

All default agents inherit RecurringAgent, which allows you to configure how often the agent should run.

Note

Some tasks, such as removing expired data from a database or removing temporary files, can be performed by an agent or by a worker that is called by the task agent.

Task agent

The task agent (TaskAgent) is responsible for executing deferred action tasks and distributed action tasks, and polls the Cortex Processing Engine Tasks database at configurable intervals.

The task agent is registered using the parallel agents configuration (ParallelAgentsConfiguration), which allows you to scale up the number of agents available to process work.

Task execution order

The task agent will always attempt to execute distributed workers first (assuming they are not part of a task chain that requires a deferred worker to execute first). This logic cannot be changed through configuration.

Task cleanup agent

The task cleanup agent (TaskCleanupAgent) responsible for removing expired tasks from the Cortex Processing Engine Tasks database at configurable intervals. This includes tasks that failed or tasks that were completed successfully.

Blob storage cleanup agent

The blob storage cleanup agent (BlobStorageCleanupAgent) is responsible for removing expired data from the Cortex Processing Engine Storage database at configurable intervals.

Do you have some feedback for us?

If you have suggestions for improving this article,