https://github.com/hongbo-miao/bug-flask-apscheduler
https://github.com/hongbo-miao/bug-flask-apscheduler
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hongbo-miao/bug-flask-apscheduler
- Owner: hongbo-miao
- Created: 2022-12-02T05:58:23.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-02T06:17:29.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T03:28:19.705Z (8 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-APScheduler Resume Job Bug
## Setup
```sh
pip install -r requirements.txt
flask run
```## Introduction
I have an interval job which prints number every 1 second. In the beginning the job is paused by default.
When you try to call `GET http:/localhost:5000/` or `POST http:/localhost:5000/`, it should resume the interval job.
However, in the code `scheduler.resume()` works, but `scheduler.resume_job(my_task_id)` does not work.
Here is the part of issue code: https://github.com/Hongbo-Miao/bug-flask-apscheduler/blob/main/app.py#L27-L31
## Issue Ticket
Opened the issue ticket at https://github.com/viniciuschiele/flask-apscheduler/issues/214