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
[BUG] JobQueue.set_application drop jobstores field #3837
Comments
Hi. The issue apparently is that A quick workaround would be application = ApplicationBuilder().bot(tg_bot).build()
application.job_queue.add_jobstore(MongoDBJobStore())) I do however agree that we should look into how this can be made more convenient for the (PTB) user or at the very least document this issue. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Had another look at this. Unfortunately, there is also no documented way to retrieve the current values of these settings (e.g. I would hence suggest that we simply add a warning to @python-telegram-bot/developers would you be okay with that? |
Not sure a warning suffices, because we will always override configure. I'd prefere to not allow this Can we subclass and deny setting it via setter? And maybe ask via an issue to get config in the future? |
Sorry, I don't quite understand your proposed solution. Which setter do you mean? What would you override in a subclass? |
Wait nevermind, how would you implement a warning anyway at .scheduler? That is not our class, thats apscheduler |
I meant a simple warning in the docs of JobQueue.scheduler :D |
PS: One could ofc make |
Steps to Reproduce
Expected behaviour
jobstores
should should not be dropped.Actual behaviour
After building JobQueue, jobstores are dropped.
Operating System
linux
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: