mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
Actually implement the liveness file
This commit is contained in:
parent
13fc4b42de
commit
b09e7187ce
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ class StatorRunner:
|
||||||
print(f" {label}: {number}")
|
print(f" {label}: {number}")
|
||||||
print("Running cleaning and scheduling")
|
print("Running cleaning and scheduling")
|
||||||
await self.run_scheduling()
|
await self.run_scheduling()
|
||||||
|
# Write liveness file if configured
|
||||||
|
if self.liveness_file:
|
||||||
|
with open(self.liveness_file, "w") as fh:
|
||||||
|
fh.write(str(int(time.time())))
|
||||||
|
|
||||||
# Clear the cleaning breadcrumbs/extra for the main part of the loop
|
# Clear the cleaning breadcrumbs/extra for the main part of the loop
|
||||||
sentry.scope_clear(scope)
|
sentry.scope_clear(scope)
|
||||||
|
|
Loading…
Reference in a new issue