forta-network / forta-node

Scan Node software for the Forta Network
https://forta.org
Other
79 stars 151 forks source link

Set bot deploy context timeout per deployment #720

Closed aomerk closed 1 year ago

aomerk commented 1 year ago

Currently the whole set of deployments share a single timeout of 5 minutes, defined in supervisor.agentStartTimeout.

Effect: Timeout of a single bot deployment cause rest of to bot deployments to fail immediately

Fix: Correct context cancellation logic should be 5 minutes of timeout PER bot, not per set of bots