Questions tagged [apscheduler]
Advanced Python Scheduler (APScheduler) is a light but powerful in-process task scheduler that lets you schedule functions (or any other python callables) to be executed at times of your choosing.
apscheduler
741
questions
0
votes
0
answers
4
views
Pyhton fastapi problem in APScheduler Run time of job was missed
I faced a problem. I wrote a program using the Python language and needed to run jobs at a specific time, so I used the apscheduler library and the "cron" feature.found every time, job is ...
0
votes
0
answers
29
views
When apscheduler starts multiple tasks at the same time, Flask SqlAlchemy query will hang
I'll post a reproducible demo code first.
import time
import sqlalchemy as sql
from apscheduler.executors.pool import ProcessPoolExecutor, ThreadPoolExecutor
from apscheduler.schedulers.blocking ...
0
votes
0
answers
36
views
got Future <Future pending> attached to a different loop : error while running code
I am trying to build a service which runs on a flask server that creates a schedule and runs it continuously to poll data and check results. I'm using apscheduler and AsyncIOS for this. The issue is ...
0
votes
0
answers
21
views
Django apscheduler running thrice at one time
I have a scheduler code that running every minute to send notifications using fcm... I used print statements to know where the issue is, it came to be at scheduler side I saw that it was getting ...
0
votes
1
answer
55
views
APScheduler scheduler.shutdown(wait=True) not waiting for background tasks to complete
I am creating 2 background schedulers, after the tasks on both the schedulers are started, I am calling scheduler.shutdown(wait=True) but it is not waiting for the tasks to complete, I got around this ...
0
votes
0
answers
31
views
How to set context to ProcessPoolExecutor in apscheduler
from apscheduler.executor.pool import ProcessPoolExecutor
from apscheduler.scheduler.blocking import BlockingScheduler
from multiprocessing import get_context
context = {'mp_context': get_context('...
0
votes
0
answers
48
views
How to Prevent Overlapping Async Tasks When Using APScheduler with asyncio in Python?
I'm using APScheduler to schedule jobs that call various webhook functions asynchronously. However, I'm encountering an issue where overlapping tasks cause errors, particularly the Task got Future ...
0
votes
0
answers
62
views
How to handle errors in Python Telegram Bot from other modules?
I am using PTB with job queue - aka apscheduler. I have set up a custom error handler for the bot itself to send the error info to a specific channel, however, I am also logging errors from ...
0
votes
0
answers
43
views
APScheduler+Kubernetes, Error getting due jobs from job store 'default': Authentication required
I'm a beginner for kubernetes and trying to use APScheduler with FastAPI in Kubernetes. The jobs are stored in redis.
FastAPI with APScheduler is running in pod A, Redis is running in pod B, so I need ...
0
votes
0
answers
82
views
ThreadPoolExecutor and concurrent.futures hangs / delays adding completed futures to as_completed
I have what seems to be a tricky question / problem to solve in a Python application I have been assigned to maintain. I'm not a Python expert and haven't seen this problem clearly mentioned or talked ...
-1
votes
1
answer
53
views
How to send args **kwargs to func in apscheduler
I try set args to function in apscheduler and got error.
I try this code:
scheduler = BackgroundScheduler()
current_job = scheduler.add_job(back_shops_tasks(company), id='shops_back', trigger='...
0
votes
0
answers
45
views
Tell apscheduler to not log the maximum number of instances reached message
I'm using apscheduler to deal with several jobs that run asyncronously. One of those tasks requests some payload from an API every second. Due to how the network works the job can await for 10 seconds ...
1
vote
0
answers
106
views
pip install Flask-APScheduler Fails
Why are modules so fragile? This is frustrating.
pip install Flask-APScheduler==1.13.1
Collecting Flask-APScheduler==1.13.1
Using cached Flask-APScheduler-1.13.1.tar.gz (12 kB)
Installing ...
0
votes
0
answers
23
views
DjangoJobStore Randomly Deletes Jobs
I have apscheduler running with a DjangoJobStore from a management command in django, but every so often some (not all) of the jobs will be deleted from the database.
The scheduler still runs, still ...
0
votes
1
answer
48
views
How can I get BackgroundScheduler to update variable in Flask route?
How do I get this current_time variable to update when the webpage is reloaded in Flask?
from flask import Flask, render_template
app=Flask(__name__)
import time
from datetime import datetime
from ...