Skip to content

[BUG] JobQueue.set_application drop jobstores fieldΒ #3837

@rejedai

Description

@rejedai

Steps to Reproduce

  1. Configure JobQueue:
job_queue = JobQueue()
job_queue.scheduler.configure(jobstores={'default': MongoDBJobStore()})
  1. Build app:
application = ApplicationBuilder().bot(tg_bot).job_queue(job_queue).build()

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

python-telegram-bot 20.4 (2.0.3-1-g51cab98)
Bot API 6.7
Python 3.11.3 (main, Jun  5 2023, 09:32:32) [GCC 13.1.1 20230429]

Relevant log output

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions