Repository navigation
Preupload without waiting, chart timings at DEBUG, LOG_LEVEL - #46
Merged
Merged
Conversation
The other periods of a chart are drawn side by side and sent with one sendMediaGroup (one sendPhoto when only one period lacks Telegram's copy, as an album needs two), where each was drawn and uploaded in turn. The upload no longer waits for a question being answered. A flood limit or a timeout now only skips that album and the next chart tries again; a refusal (the bot can't post in the chat) still switches the preupload off until a restart, as any error did before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Back from the album, which held the quick periods until the slowest chart was drawn and the whole album had landed. Each other period is drawn and uploaded on its own with sendPhoto, all at once, so a period is ready as soon as its own upload lands. The upload still doesn't wait for a question being answered. A flood limit or a timeout skips those uploads (one warning a chart) and the next chart tries again; a refusal still switches the preupload off, with one warning however many periods were refused. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
The "Chart ms:" lines of a chart reply and the "Period button: cached chart sent in" line are DEBUG now. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
Setting them always pinned them at INFO for the tests that import ecobot. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBwHofjb1g9onaYRdLZMbf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preupload (TELEGRAM_PRELOAD_CHAT)
Logs
Chart ms: …lines andPeriod button: cached chart sent in … msare DEBUG.LOG_LEVEL(DEBUG,INFOdefault,WARNING,ERROR): sets the bot's own loggers only, the libraries stay as they were.Checks
python -m pytest -q(798 passed) andpython scripts/eval_prompts.py(87 of 87).Generated by Claude Code