forta-network / forta-node

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

Add support for graceful bot shutdown #782

Closed aomerk closed 1 year ago

aomerk commented 1 year ago

The method TearDownBot is evolved to support step 2: Teardown lifecycle:

  1. Detach networks
  2. Send SIGTERM and wait until the container exits, with a maximum duration of 1 minute
  3. Remove container
  4. Remove networks
  5. Remove image