Skip to content

Commit

Permalink
scheduler now prints remaining time until next run
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmid committed Nov 30, 2022
1 parent f05ae3e commit cee14bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def run_schedule(self):
if rules_next < next_time:
next_time = rules_next

print(f'Next run: {next_time}')
print(f'Next run: {next_time} / in {str(next_time - now).split(".")[0]}')

while True:
time_remaining = next_time - dt.datetime.now()
Expand Down

0 comments on commit cee14bd

Please sign in to comment.