Skip to content

fix mian.py: make start delay configureable - #378

Open
s-grechkin wants to merge 1 commit into
nlef:masterfrom
s-grechkin:fix-too-short-start-delay
Open

fix mian.py: make start delay configureable#378
s-grechkin wants to merge 1 commit into
nlef:masterfrom
s-grechkin:fix-too-short-start-delay

Conversation

@s-grechkin

@s-grechkin s-grechkin commented Oct 12, 2025

Copy link
Copy Markdown

I got a problem with tg bot in docker container on extra orange-pi host.
I did not get greeting message, also no timelapses and status messages. Status command sent only snapshot.
After startup I got error message ''appscheduler Run time of job start_scheduler <...> was missed by <...>.
Also I noticed that time between adding this job and other messages in log is more than 5 seconds.
Python-telegram-bot docs says that run_polling method starts its own scheduler and first job in queue is start_scheduler callback.
So core of problem is time of strating bot (in run_polling method) is more than delay in run_once call parameters.

@s-grechkin

Copy link
Copy Markdown
Author

10 seconds delay caused stable work for me

@KapJI

KapJI commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

I feel like this masks symptom instead of fixing the real issue. It needs to be investigated why this happens, not just increasing startup delay.

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