-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/health api and telegram commands to return last processing time #6294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
last_p = self._freqtrade.last_process | ||
return { | ||
'last_process': str(last_p), | ||
'last_process_loc': last_p.astimezone(tzlocal()).strftime(DATETIME_PRINT_FORMAT), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now made some changes to this ...
especially this part can be argued ... this will move the timestamp to "local time" (in server timezone) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, been buzy with life/work, I can sort this out in the weekend though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pushed "something" already (i'm sometimes faster fixing stuff than commenting "please fix" 😆 )
... this is more a "do we want it this way" question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
We'll try this with "current timezone" for telegram - we'll see if this will raise questions ...
Summary
Add ability to see the last process timestamp, meaning when was the last time freqtradebot internal process method finished.
Solve the issue: #6009
Quick changelog
What's new?
Ability to see last process timestamp.
We return 1970-01-01 00:00:00 by default until the first process cycle begins.