This PR adds querying factories for all existing pools to the bots. It adds a few checks for the pools before they get added to the list of allPools, and pools get removed from the bot when they are not part of any Path, to save querying time.
Also, this PR adds saving/reading the POOLS variable from the filesystem if present, again, to save a lot of startup-time.
Finally, an environment variable called MANUAL_POOLS_ONLY is added to the botConfig (defaulting to 0) that allows users to not query the factories for all pools but only using the manually entered pools in the POOLS variable, this to allow dedicated bots for specific pools/paths.
Description and Motivation
This PR adds querying factories for all existing pools to the bots. It adds a few checks for the pools before they get added to the list of allPools, and pools get removed from the bot when they are not part of any Path, to save querying time. Also, this PR adds saving/reading the POOLS variable from the filesystem if present, again, to save a lot of startup-time. Finally, an environment variable called
MANUAL_POOLS_ONLY
is added to the botConfig (defaulting to 0) that allows users to not query the factories for all pools but only using the manually entered pools in the POOLS variable, this to allow dedicated bots for specific pools/paths.Update index.md
)