tellor-io / telliot-feeds

Telliot feeds
https://tellor-io.github.io/telliot-feeds
Other
26 stars 9 forks source link

Telliot Conditional Not Catching Stale Timeout Properly (after running for a while) #755

Closed 0xSpuddy closed 7 months ago

0xSpuddy commented 7 months ago

Possibly Related to the bug that causes issue #680

Telliot conditional command works great when tested locally, and shortly after starting up. However after telliot has been running for some hours with the telliot conditional command, it's not able to trigger reports for some reason.

The log shortly after start up looks great / as expected:

INFO    | telliot_feeds.reporters.customized.conditional_reporter | telliot feeds value: 1.0
INFO    | telliot_feeds.reporters.customized.conditional_reporter | Latest Tellor price = 1.00004
INFO    | telliot_feeds.reporters.customized.conditional_reporter | feed price change = 3.999840006403744e-05
DEBUG   | telliot_feeds.reporters.customized.conditional_reporter | tellor {"type":"SpotPrice","asset":"usdc","currency":"usd"} data is recent enough
INFO    | telliot_feeds.reporters.customized.conditional_reporter | feeds are recent enough, no need to report
INFO    | telliot_feeds.reporters.customized.conditional_reporter | Sleeping for 300 seconds

Then after some time passes, the log shows no datafeed was setß:

INFO    | telliot_feeds.reporters.customized.conditional_reporter | feeds are recent enough, no need to report
INFO    | telliot_feeds.reporters.customized.conditional_reporter | Sleeping for 360 seconds
INFO    | telliot_feeds.reporters.customized.conditional_reporter | checking conditions and reporting if necessary
INFO    | telliot_feeds.reporters.customized.conditional_reporter | no datafeed was setß: None. Please provide a spot-price query type (see --help)
INFO    | telliot_feeds.reporters.customized.conditional_reporter | feeds are recent enough, no need to report
INFO    | telliot_feeds.reporters.customized.conditional_reporter | Sleeping for 360 seconds
INFO    | telliot_feeds.reporters.customized.conditional_reporter | checking conditions and reporting if necessary
INFO    | telliot_feeds.reporters.customized.conditional_reporter | no datafeed was setß: None. Please provide a spot-
0xSpuddy commented 7 months ago

Looks like the error happens immediately after the first triggered report: telliot_conditional_bug-log.txt