apscheduler Questions

1

Solved

Suppose I have a model Event. I want to send a notification (email, push, whatever) to all invited users once the event has elapsed. Something along the lines of: class Event(models.Model): start...
Rotberg asked 27/2, 2020 at 18:21

1

Scheduler running fine in production, then all of a sudden it shut down. Clearly DB might have been offline for a bit (web apps never missed a beat so it was transient). Log reported... [2019-11...
Interknit asked 26/11, 2019 at 21:55

2

Solved

I am trying to setup APScheduler to run every 4 days, but I need the job to start running now. I tried using interval trigger but I discovered it waits the specified period before running. Also I t...
Ammoniate asked 28/1, 2018 at 13:39

2

I am running a BlockingScheduler process that it's suppose to run several cron jobs, but it fails to run every single time with the message: Run time of job "validation (trigger: cron[hour='3'], n...
Chengteh asked 2/1, 2017 at 13:51

5

I'm trying to schedule an interval job with APScheduler (v3.0.0). I've tried: from apscheduler.schedulers.blocking import BlockingScheduler sched = BlockingScheduler() def my_interval_job(): pr...
Seibel asked 24/3, 2015 at 1:1

1

I have a Flask app where i use Flask-APScheduler to run a scheduled query on my database and send an email via a cron job. I'm running my app via Gunicorn with the following config and controlled ...
Aureaaureate asked 14/11, 2018 at 19:45

3

Solved

Greeting! I'm trying to make a build using PyInstaller. Config: Python 3.6.5 pip 10.0.1, OS: Ubuntu 18.04. Using virtualenv (also tried with python -m venv). My app using an apscheduler, websock...
Porphyry asked 1/7, 2018 at 15:6

2

Solved

I want to run a job with Flask-APScheduler that queries a Flask-SQLAlchemy model. When the job runs, I get RuntimeError: application not registered on db instance and no application bound to curren...
Hemihedral asked 18/10, 2016 at 20:17

1

I am using APScheduler for my project. I went through APScheduler documentation. But I am not able to understand what is actual difference between 'Interval' and 'cron' triggers. Following definiti...
Mraz asked 11/10, 2017 at 8:14

1

Solved

I am trying to contribute to a project on Github for collecting financial data. The code.. # time_keeper.py from apscheduler.scheduler import Scheduler class TimeKeeper: def __init__(se...
Consultation asked 8/2, 2017 at 17:21

1

Solved

I am using APScheduler to run a python method in every 5 minutes. It's working perfectly. I need to limit the scheduled job iteration to 100. After the 100 iteration it should close the process. I ...
Monsignor asked 9/11, 2016 at 12:20

1

Here is my problem: I'm using APScheduler library to add scheduled jobs in my application. I have multiple jobs executing same code at the same time, but with different parameters. The problem occu...
Baal asked 25/8, 2016 at 12:49

5

Solved

I have problem when i am using apscheduler in my flask application. In my view.py file i am writing like this import time from apscheduler.scheduler import Scheduler def test_scheduler():...
Murrhine asked 14/2, 2013 at 12:22

2

Starting the scheduler gives this error. As i can see in the commits that this piece of code was added just 3 days back. So am i missing something here or its a bug ? In /local/lib/python2.7/site-...
Foret asked 5/4, 2016 at 21:50

1

I have a Flask application that's deployed on a single AWS EC2 instance. In my __init__.py file I've instantiated a BackgroundScheduler with a job scheduled to run at every 1 hour interval. Here's ...
Formation asked 17/3, 2016 at 18:30

1

Solved

I'm running a scheduler using python apscheduler inside web.py framework. The function runserver is supposed to run everyday at 9 a.m but it is inconsistent. It runs most days but skips a day once ...
Urbannai asked 20/1, 2016 at 9:52

1

Solved

I expected that a apscheduler.executors.pool.ProcessPoolExecutor with the max_workers argument set to 1, would not execute more than one job in parallel. import subprocess from apscheduler.execut...
Hithermost asked 11/12, 2015 at 0:57

1

Solved

We have a requirement to schedule multiple jobs dynamically while current job is executing. Approximate Scenario is: There should be a scheduler to go through a table of application daily basi...
Plane asked 11/12, 2015 at 8:8

2

Solved

I am working on a period task with Python apscheduler, I want the code execute on 9:00, 11:00, 16:00, 17:00 every day and here is an example code for the job: #coding=utf-8 from apscheduler.schedu...
Covey asked 26/8, 2015 at 8:5

1

I'm new to APScheduler and testing it before implementing it in a larger scope. I have created the code below, but somehow my functions are never called when I use add_job with trigger='date'. If ...
Eluvium asked 25/9, 2015 at 14:52

0

I am trying to use APScheduler to run periodic jobs with an IntervalTrigger, I've intentionally set the maximum number of running instances to one because I don't want jobs to overlap. Problem is ...

1

I have a simple requirement. I am running apscheduler as a separate process. I have another jobproducer script from where I want to add a job to the scheduler and run it. This is my scheduler code...
Kidnap asked 3/9, 2015 at 10:58

1

Solved

I am trying to get familiar with Flask-APScheduler plug-in through the following sample code: https://github.com/viniciuschiele/flask-apscheduler/blob/master/examples/jobs.py#L1 My project has the...
Minervamines asked 6/9, 2015 at 13:33

1

The title basically says it all. I have gunicorn running my app with 5 workers. I have a data structure that all the workers need access to that is being updated on a schedule by apscheduler. Curre...
Septuplicate asked 10/8, 2015 at 2:22

2

Solved

Been struggling with this for a while. Based on this thread: Using global variables in a function other than the one that created them I should be able to update the variable used by thread_2 by ...

© 2022 - 2025 — McMap. All rights reserved.