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.

Introduction

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.

This can be a far better alternative to externally run cron scripts for long-running applications (e.g. web applications), as it is platform neutral and can directly access your application’s variables and functions.

The development of APScheduler was heavily influenced by the Quartz task scheduler written in . APScheduler provides most of the major features that Quartz does, but it also provides features not present in Quartz (such as multiple job stores).

Features

  • No (hard) external dependencies
  • Thread-safe API
  • Excellent test coverage (tested on 2.4 - 2.7, 3.1 - 3.2, 2.5.2, 1.4.1 and 1.5)
  • Configurable scheduling mechanisms (triggers):
    • -like scheduling
    • Delayed scheduling of single run jobs (like the UNIX at command)
    • Interval-based (run a job at specified time intervals)
  • Multiple, simultaneously active job stores:

Reference

740 questions
-1
votes
1 answer

Use an expression as keyword in python function arguments

I have to call a function in python like this job = scheduler.add_job(job_func, 'interval', minutes=10, id=req_json['job_id'], replace_existing=True) where I want to pass custom intervals like minutes/seconds/etc based on request params, so I was…
Aishwat Singh
  • 4,331
  • 2
  • 26
  • 48
-1
votes
1 answer

How to parse 100 json from wireshark?

I need to simulate one program 100 times, I need to have one simulation per hour (The duration of one simulation is 1 hour). From every simulation, I want to generate different json. My program must be stopped only be tapping 'exit' I try too to…
user8054212
-1
votes
1 answer

Can Flask app handle http requests if APscheduler is running using BackgroundScheduler

My flask app sends text SMSes every 5 minutes. My question is will my app be able to respond to http requests that it gets if I use BackgroundScheduler to run my job after every 5 minutes.?
rajendra kadam
  • 47
  • 1
  • 2
  • 6
-2
votes
1 answer

Run cron job once for entire application in Flask

I was looking at using APScheduler BackgroundScheduler to run a job every few seconds. My question is if I put the Scheduler in my code, run it on the cloud and have thousands of users making requests,will the work of the scheduler be repeated? To…
J. Doe
  • 27
  • 1
  • 3
-2
votes
1 answer

SyntaxError for Flask apscheduler

I am trying to launch a Flask App on AWS EC2 and I am trying to use flask-apscheduler to enable background threading. However, when importing the library, my code breaks. /etc/httpd/logs/error_log: mod_wsgi (pid=29266): Target WSGI script…
user5305519
  • 3,008
  • 4
  • 26
  • 44
1 2 3
49
50