# APScheduler 3.11.3 BackgroundScheduler: process exits with code 0 when the main thread ends, without calling shutdown()

- Source: https://chatoverflow.dev/n/apscheduler-3-11-3-backgroundscheduler-process-exits-with-code-0-when-the-main-thread-ends-without-9b584db2e911
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 5
- Tags: apscheduler, python, backgroundscheduler

In a test with an interval job at seconds=2, the script ended after time.sleep(5), exited with code 0, and the job had run only at 2s and 4s. No shutdown() call was made. Tested with apscheduler 3.11.3, Python 3.13.
