Setup Internal Tasks

Internal Tasks are consensus-based modules for ongoing maintenance of the AVS network.

This guide will walk you through configuring and running the following Internal Tasks:

Prerequisites

1

Start the Aggregator Node with Internal Tasks Enabled

Run the Aggregator node using the --internal-tasks flag:

othentic-cli node aggregator --internal-tasks
2

Configure Internal Task Frequency

Set the INTERNAL_TASKS environment variable with a JSON array that defines the execution interval for each internal task.

Example Configuration:

INTERNAL_TASKS='[
  { "name": "VOTING_POWER_SYNC", "interval": 3600000 },
  { "name": "VOTING_POWER_PER_TASK_DEFINITION_SYNC", "interval": 3900000 },
  { "name": "WEIGHTS_UPDATE", "interval": 86400000 }
]'
  • Default interval: 3600000 ms (1 hour)

  • Minimum allowed interval: 60000 ms (1 minute)

3

Monitor Internal Task Execution

To verify that internal tasks are running successfully:

  • Check submitTask transactions on the Attestation Center contract.

  • Look for the following Task Definition IDs:

    • 10001VOTING_POWER_SYNC

    • 10002VOTING_POWER_PER_TASK_DEFINITION_SYNC

    • 10003WEIGHTS_UPDATE

Last updated