scheduled-tasks

How to prevent airflow from backfilling dag runs?

How to prevent airflow from backfilling dag runs? Question: Say you have an airflow DAG that doesn’t make sense to backfill, meaning that, after it’s run once, running it subsequent times quickly would be completely pointless. For example, if you’re loading data from some source that is only updated hourly into your database, backfilling, which …

Total answers: 3

Scheduling Python Script to run every hour accurately

Scheduling Python Script to run every hour accurately Question: Before I ask, Cron Jobs and Task Scheduler will be my last options, this script will be used across Windows and Linux and I’d prefer to have a coded out method of doing this than leaving this to the end user to complete. Is there a …

Total answers: 14

How to schedule a function to run every hour on Flask?

How to schedule a function to run every hour on Flask? Question: I have a Flask web hosting with no access to cron command. How can I execute some Python function every hour? Asked By: RomaValcer || Source Answers: You could make use of APScheduler in your Flask application and run your jobs via its …

Total answers: 10

Problems running python script by windows task scheduler that does pscp

Problems running python script by windows task scheduler that does pscp Question: Not sure if anyone has run into this, but I’ll take suggestions for troubleshooting and/or alternative methods. I have a Windows 2008 server on which I am running several scheduled tasks. One of those tasks is a python script that uses pscp to …

Total answers: 9

Python return value from scheduled event

Python return value from scheduled event Question: I would like to get the value returned from a function called by a scheduled event. Below is a simple example of what I would like to do. import time import sched schedule = sched.scheduler(time.time, time.sleep) def ret_this(): return “This.” def schedthis(): schedule.enter(2,1,ret_this, ()) schedule.run() ## <- print …

Total answers: 2

Pros and cons to use Celery vs. RQ

Pros and cons to use Celery vs. RQ Question: Currently I’m working on python project that requires implement some background jobs (mostly for email sending and heavily database updates). I use Redis for task broker. So in this point I have two candidates: Celery and RQ. I had some experience with these job queues, but …

Total answers: 2

Task Scheduling Across a Network?

Task Scheduling Across a Network? Question: Can you recommend on a python tool / module that allows scheduling tasks on remote machine in a network? Note that the solution must be able to not only run certain jobs/commands on remote machines, but also verify that jobs etc are still running (for example, consider the case …

Total answers: 4

Schedule Python Script – Windows 7

Schedule Python Script – Windows 7 Question: I have a python script which I would like to run at regular intervals. I am running windows 7. What is the best way to accomplish this? Easiest way? Asked By: Btibert3 || Source Answers: A simple way to do this is to have a continuously running script …

Total answers: 3