MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / run

Method run

python/ct_monitor/ct_monitor.py:91–102  ·  view source on GitHub ↗

Run the monitor loop indefinitely.

(self)

Source from the content-addressed store, hash-verified

89 self.last_checked = logs[0]["id"]
90
91 def run(self):
92 """Run the monitor loop indefinitely."""
93 print(f"Monitoring {self.domain}...")
94 while True:
95 try:
96 self.check_new_logs()
97 except PoisonedLog as err:
98 print(err, file=sys.stderr)
99 return
100 except Exception as err:
101 print(err, file=sys.stderr)
102 time.sleep(60) # Sleep for 1 minute (60 seconds)
103
104 @staticmethod
105 def validate_domain(domain: str):

Callers 1

mainFunction · 0.95

Calls 1

check_new_logsMethod · 0.95

Tested by

no test coverage detected