Skip to main content

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
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 ...
Taibaoui Mohamed's user avatar
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 ...
zcfh's user avatar
  • 141
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 ...
Rashi Bandi's user avatar
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 ...
Rohit's user avatar
  • 3
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 ...
Rajiv Kumar's user avatar
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('...
Muhammad D Vikar's user avatar
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 ...
Allen Ye's user avatar
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 ...
goalie1998's user avatar
  • 1,422
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 ...
SenkuuX's user avatar
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 ...
Jonas Castanheira's user avatar
-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='...
Андрей Изотов's user avatar
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 ...
Marcelo Lacerda's user avatar
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 ...
David Turner's user avatar
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 ...
Bigbob556677's user avatar
  • 2,020
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 ...
Total30's user avatar

15 30 50 per page
1
2 3 4 5
50