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:
Voting Power Sync
Voting Power Sync Per Task Definition
Othentic CLI installed
Run the Aggregator node using the --internal-tasks flag:
--internal-tasks
otnode run aggregator --internal-tasks
Set the INTERNAL_TASKS environment variable with a JSON array that defines the execution interval for each internal task.
INTERNAL_TASKS
Example Configuration:
INTERNAL_TASKS='[ { "name": "VOTING_POWER_SYNC", "interval": 3600000 }, { "name": "VOTING_POWER_PER_TASK_DEFINITION_SYNC", "interval": 3900000 } ]'
Default interval: 3600000 ms (1 hour)
3600000
Minimum allowed interval: 60000 ms (1 minute)
60000
To verify that internal tasks are running successfully:
Check submitTask transactions on the Attestation Center contract.
submitTask
Look for the following Task Definition IDs:
10001 – VOTING_POWER_SYNC
10001
VOTING_POWER_SYNC
10002 – VOTING_POWER_PER_TASK_DEFINITION_SYNC
10002
VOTING_POWER_PER_TASK_DEFINITION_SYNC
Enforce successful Internal Tasks execution by specifying a set of trusted Operators.
Set this using:
otcli network set-restricted-attesters
Run above for all the Internal tasks.
Last updated 7 months ago