Questions tagged [scheduled-tasks]
A Scheduled Task is a task that is scheduled to execute at a certain time (as the name is self-explanatory).
75
questions
2
votes
1answer
33 views
Detect discontinuities in Windows clock in Java
Please review the code below, which detects discontinuities in Windows system clock in long-running programs.
...
3
votes
0answers
34 views
n executions of a periodic goroutine
I'm new to Go and have a use-case for periodically executing an async work-function. I want the interval between work-function executions to be constant (not the time between one finishing and the ...
5
votes
2answers
390 views
Simple async task scheduler
I've written a .NET Core console application to monitor the operation of a sensor network and I'd like a review of the task scheduling performed by the main program loop. There are three tasks that ...
3
votes
1answer
52 views
Checking inactivity with periodic tasks in Java
I have created a simple HealthCheck service. I have two approaches:
Create a task canceling the previous one if the system is active, rescheduling the new task.
Create a periodic task and regularly ...
1
vote
2answers
70 views
Schedule Checker
How could I reduce this schedule checker? There are too many conditions.
This code is supposed to make sure we're not booking events for employees that are already booked in a specified timeframe.
<...
1
vote
1answer
39 views
Start task as soon as multiple tasks are successful
I write an hobbyist application that collects soccer-data from different sources around the www and aggregates it for a graphical representation and sends it out as a tweet. Now I want to fully ...
2
votes
0answers
42 views
2
votes
1answer
37 views
Reload polyline midpoints into parallel tables
I have an Oracle GIS database that has spatial tables. The records in the spatial tables have a geometry column that contains polylines.
I've written a Python 2.7.16 script that calculates the ...
3
votes
1answer
239 views
Timer for scheduling tasks in C++11
I have made a simple Timer class used for scheduling tasks. While defining the interface, I have followed the interface of a ...
4
votes
1answer
70 views
Periodically synching data from an API to database is extremely slow
I have a scheduled task where I synch all the data from one table (via an API) to another. There are about 10,000 rows that are being updated and the new ones get created. This is what I came up with ...
3
votes
1answer
197 views
Simple python scheduled tasks script that runs once daily
I want to execute a python script daily and thereby want to schedules task as follows.
The idea is that the script will run once daily, and the script will then decide what tasks to be done today.
...
2
votes
1answer
91 views
Periodically sending data from database to an API
I'm trying to make a timed background service in .NET Core (I found this approach in Microsoft Docs), that every 15 seconds it gets data from the database (1000 rows max, if something exists) then ...
6
votes
1answer
961 views
Dynamic operators within DAGs (Airflow)
I would like to know if what I did to achieve to goal of dynamic operators within an Airflow DAG (Directed Acyclic Graph) is a good or a bad practice.
The goal I had to achieve was:
Create a 'x' ...
3
votes
0answers
89 views
Scheduler built with observables v3 (follow-up) - now testable
This is a 2nd follow-up to my previous one about a Scheduler built with observables.
Although the last one was working correctly, it was only possible to see this ...
2
votes
2answers
1k views
Bash on Synology - Delete recycle bin entries over X days old
Synology NASs have a Task Scheduler that allows you to schedule deletion of files over X days old from recycle bins. This feature isn't working for me–running the task results in no files being ...
5
votes
1answer
5k views
2
votes
0answers
43 views
Remembering what chores to do each day with LED patterns [closed]
I am using a Raspberry Pi 3 model b to control LEDs connected on a breadboard. I want the lights to tell me what chore I have to do today: when to take out the trash, recyclables, vacuum, and clean ...
4
votes
2answers
110 views
Function to call a list of callables with retry
This script is designed to be run via windows task scheduler once per day.
All callables passed to this function should only return a bool. The callables are called until either the maximum number of ...
5
votes
1answer
44 views
Scheduled file sorting with Ruby
I have a script running as an hourly cron job. It finds all screenshots on the Desktop and moves them to directories sorted by year/month/day.
On MacOS, screenshots are automatically saved to the ...
4
votes
2answers
280 views
Sleep until specified time
It's sometimes useful to pause until a specified time (but inconvenient to use at or the like), so I wrote a tiny script to wait until a user-specified time point ...
2
votes
1answer
80 views
Crontab datetime field pattern parser in Rust
@angus on Unix.SE implemented a tool in C to list upcoming cron jobs in response to a question. I've re-implemented the basic functionality (showing only the next cron job) in Rust, using ...
2
votes
1answer
94 views
Powershell for syncing Minecraft save files
My code in full plus the task scheduler definition: https://gist.github.com/DaneWeber/0c5e7978bd3927734173e3afdc3d6338
This is my first non-trivial PowerShell script. This was a pretty major learning ...
4
votes
0answers
162 views
A task scheduler with persistence
I wrote a task scheduler package with data persistence in Go.
However, the logic seems super messy... even it seems passed all tests.
Is there any better way to structure the code and finish few ...
1
vote
1answer
655 views
8
votes
2answers
156 views
Streaming scheduled TV shows according to a CSV playlist
I'm very new to Python, and I've made a small program/script that will allow me to stream specific files at a given time.
My idea is that I have a .csv file for each day, with one row for each movie/...
0
votes
1answer
935 views
Promise-based fixed delay poller with timeout
I have the following functions for polling some function periodically with a timeout
...
5
votes
1answer
118 views
Scheduling using System.IObservable 2.0
As a follow up to this first attempt to create and use my own IObservable<T> implementation, this is version 2.0. The goal has been to correct the code where ...
4
votes
1answer
131 views
Scheduling using System.IObservable
With great inspiration from t3chb0ts ongoing work about scheduling, cron jobs etc. (last post here), I decided to make my own version of the Scheduler - using the observer pattern - as a learning ...
6
votes
0answers
177 views
Scheduler built with observables v2 (follow-up)
It would probably be too easy if the old Scheduler worked as intended being that simple. But an eye-openig review showed that from time to time it'll miss one ...
4
votes
2answers
797 views
Scheduler built with observables
I sometimes have to schedule some tasks and wanted to have my own reusable scheduler. Since I like the Rx, I build it on top of it.
Follow-up
There is a newer version of the ...
2
votes
0answers
49 views
Write one string to a socket within 10 seconds or another string if the time is out
I have implemented a method which will send one data to the server if it (Raspberry Pi Pin Input HIGH, in this case) occurs within 10 seconds. If this doesn't happen within 10 seconds then I should ...
3
votes
1answer
105 views
Python 3 PriorityDeque with absolute priorities
Python 3 has queue.PriorityQueue, but that wasn't good enough (lacking methods, not double-ended, etc) for me and my purposes. Therefore, I have made a new one ...
1
vote
0answers
9k views
Very simple task scheduler (Task based, not Timer based)
My app has several periodic tasks. So I created this very simple generic task scheduler (got sick of copy-pasting code, which is based on Timers). It is very very basic and simple, can you find ...
2
votes
1answer
655 views
Easy used head-only timer in C++11
This timer can add tasks running for one-shot, several times, or loop every time and delete task by marking its id. It's simply implemented by a priority queue.
My purpose is easy to use and ...
1
vote
0answers
169 views
Pausing task until designated time using sleep()
I have been playing around with schedule from GitHub. How can I improve the code?
...
1
vote
0answers
69 views
Implement running hours function in PowerShell
So I am trying to create a function in PowerShell that:
Takes start time in form HHmm to denote beginning of time window
Takes an end time in format HHmm to denote end of time window
Calling the ...
5
votes
1answer
1k views
Python library for calculating next and previous time of the cron-like scheduled task
I needed a task system that would let me define a cron-like rule in the database, and be able to find the next and the previous time when the task was and is supposed to happen.
I am running a web ...
4
votes
2answers
49 views
Process monitoring script
I wrote a script which logs memory usage of a process (pid in file), and reacts in case a limit is reached. I run the script nightly. In my case, the process concerned propably has a memory leak and ...
6
votes
2answers
444 views
ObservingCache - scheduled task executor that returns a result
I wrote a utility class called ObservingCache, which receives a task in the form of Supplier<T> and an interval, computes the task every [interval] millis and ...
2
votes
0answers
594 views
Generic polling class and using it to poll SqlConnection
I have the following poller class that can be used to "poll the required action":
...
4
votes
1answer
67 views
Yum Notification Script
This is a Bash script I wrote to email me when updates are available for my server. I'm new to bash programming, so I don't know if I've done this well.
...
2
votes
0answers
236 views
Automatic resource allocation for the purpose of resource-dependent task scheduling
Here is what I'm trying to accomplish: Suppose you are trying to control an embedded system with several external hardware resources/components/devices. Naturally, you are concerned with the issue of ...
4
votes
1answer
1k views
Task scheduler with dependencies
I have need for a task scheduler determined by a directed graph. The tasks are held in a std::vector<task_type>, while the dependency graph is held in a ...
2
votes
1answer
111 views
Program to email you exchange rates that you are tracking and stats on them
This is a program I made as I am currently living in Japan with a British bank account, so exchange rates matter to me.
On the first time run, you run the script with two arguments (two currencies) ...
1
vote
1answer
1k views
Rake task to send users a reminder to post with conditions
I am implementing a feature that reminds users to make a post via email if
the user has set daily reminders to true
he has not posted yet today
and if the current hour matches when he would like to ...
4
votes
2answers
18k views
Parallel Task Queue that runs in sequence
I'm in need of a solution that runs constantly incoming requests in a per-resource sequence, but parallel in general.
The use-case:
Many clients connect to a server and start issuing work. The work ...
4
votes
1answer
655 views
Task Scheduler for small interval and one number of start
Scenario:
I want a task scheduler that enables my application to schedule some tasks in small time interval. I want to use it in my socket server application. For example, when the user connects to ...
8
votes
2answers
177 views
Execute every Monday that is not the Monday following last Saturday in month
I think the following is good but wondering if it can be simplified or improved.
My condition for code execution is the following:
It is a Monday
AND
It is not the Monday following the last Saturday ...
1
vote
0answers
87 views
Self cancelling period tasks
I've got a piece of code that will run a period task to do a small bit of processing. The task depends on an externally managed connection resource, and if the resource goes away then the task should ...
4
votes
2answers
1k views
Auto backup Chrome bookmarks
This script, once added to the Windows Scheduler, automatically creates a backup of your Google Chrome bookmarks.
...