Skip to content

Preupload without waiting, chart timings at DEBUG, LOG_LEVEL - #46

Merged
robdevops merged 5 commits into
mainfrom
claude/envirobot-next
Oct 18, 2026
Merged

robdevops merged 5 commits into
mainfrom
claude/envirobot-next

Conversation

@robdevops

Copy link
Copy Markdown
Owner

Preupload (TELEGRAM_PRELOAD_CHAT)

  • Each other period is drawn and uploaded on its own, all at once, the moment it can be: no wait for a question being answered, no one-at-a-time.
  • A flood limit or a timeout only skips those uploads (one warning a chart); a refusal still switches the preupload off, with one warning however many periods were refused.
  • An album was tried and dropped: it held the quick periods until the slowest chart was drawn and the whole album had landed.

Logs

  • The Chart ms: … lines and Period button: cached chart sent in … ms are DEBUG.
  • New LOG_LEVEL (DEBUG, INFO default, WARNING, ERROR): sets the bot's own loggers only, the libraries stay as they were.

Checks

python -m pytest -q (798 passed) and python scripts/eval_prompts.py (87 of 87).


Generated by Claude Code

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
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
@robdevops
robdevops merged commit b0aac85 into main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants