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).

Filter by
Sorted by
Tagged with
18
votes
3answers
47k views

C++ Task Scheduler

I needed a task scheduler that could be used somehow like this: ...
10
votes
4answers
1k views

Schedule class (exercise for test driven development)

Schedule is a simple class that could be used in program to manage when a task should be repeated (a todo list, for example). Its constructor requires a start date ...
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 ...
8
votes
1answer
5k views

Generic Java task-scheduler

I wrote this generic task scheduler for executing tasks in fixed-delay intervals. Can you find anything wrong with it, or issues that may arise from using it for sending something like queued mails in ...
8
votes
2answers
158 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/...
7
votes
1answer
14k views

Multithreaded task-scheduler

This is (supposedly) a multi-threaded scheduler for one-time and/or repeating tasks. The tasks are simple std::function<void()> objects. I built it to be a ...
7
votes
1answer
5k views

Simple Job Scheduler Class

I've created a simple daily task scheduler but I'd like to change this to a general task scheduler accepting more advanced schedules. I'd like to have some critiques from other sets of eyes on my ...
7
votes
1answer
2k views

C++14 Async Task Scheduler

I'm not sure if this site has the right audience for anyone to be able to respond to this, but I wrote a header only scheduler which schedules a task to be run in the future on another thread: ...
6
votes
2answers
320 views

Displaying a scheduled job under a scheduled time

I use at to schedule jobs and atq to display the scheduled jobs. But it mildly irritates me in that I have to look up each job ...
6
votes
1answer
3k views

Task Reminder - Repeatedly notify every 6 hours

So I'm very much a beginner to Java and Android programming. I've worked a lot more with Python so I might have some quirks from there bleeding into my code here. I'd like a particular focus on ...
6
votes
2answers
474 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 ...
6
votes
1answer
657 views

General Batched Job Runner

This question is inspired by: Generic Task Scheduler where the problem is to run tasks on a scheduled basis, in parallel, and have individual timeouts for each job. For example, consider this use-...
6
votes
1answer
1k 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' ...
6
votes
1answer
2k views

Task scheduler coding exercise

In an interview about multithreading I was asked to write code to satisfy the requirements below: In the exercise you need to provide implementation of single-threaded TaskScheduler class with the ...
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 ...
5
votes
2answers
475 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 ...
5
votes
1answer
119 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 ...
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 ...
5
votes
1answer
2k 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 ...
5
votes
1answer
344 views

Querying list of servers with PS to report on Scheduled Tasks

I work in a Windows environment where Scheduled Tasks have never been documented or kept up with, leaving us with about 150 servers that have a random smattering of tasks. I am attempting to construct ...
4
votes
2answers
368 views

Performing actions based on command line arguments

I'm currently reviewing a bit of an older console application which performs certain tasks depending on the command line argument that is given. These tasks are called through Windows Task Scheduler. ...
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
2answers
946 views

Flow Task Scheduler

Scenario: I wanted a task scheduler/doer that enables my application to schedule some tasks to be executed in a specified time but in the same order they were scheduled in or depending on their ...
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 ...
4
votes
2answers
818 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 ...
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 ...
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. ...
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 ...
4
votes
2answers
111 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 ...
4
votes
2answers
307 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 ...
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. ...
4
votes
1answer
660 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 ...
4
votes
2answers
2k views

Task scheduler API

I'm spec'ing out a API for a task scheduler and I would be thankful for your thoughts. This is what I've got so far: ...
4
votes
1answer
3k views

Asynchronous task runner

This is my personal project. This class is responsible for running jobs asynchronously that are registered using dependency injection. All improvement suggestions are welcome. It can be as small as ...
4
votes
1answer
132 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 ...
4
votes
0answers
172 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 ...
3
votes
1answer
18k views

Custom Task Scheduler

I want a task scheduler with some specific capabilities for my application. I've searched for a good library that provides me with the following, but found nothing. Queuing awaitable tasks. Ability ...
3
votes
1answer
686 views

Kill dead instances of Excel on a server

We have several legacy programs (VB6) generating Excel report. They are scheduled tasks running on a server. Yes, violate this. As a result, we've got lots of "dead" instances of Excel on the server. ...
3
votes
1answer
360 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 ...
3
votes
1answer
222 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. ...
3
votes
1answer
110 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 ...
3
votes
1answer
119 views

Ported C# scheduling to Scala

I'm taking a design workshop and we've received a short task: To parse an input file of processor jobs. To simulate scheduling of those jobs on a parallel computer (each job needs X processors) The ...
3
votes
1answer
53 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 ...
3
votes
1answer
436 views

Parallel scheduler for running actions at designated times

I've been trying to learn Haskell on and off for a couple years. I had a project for building a parallel web scraper, and I figured I'd try to use Haskell for it. Here's the part used to schedule ...
3
votes
0answers
37 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 ...
3
votes
0answers
90 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
5k views

Task scheduler for a particular application

This isn't meant as a scheduler for just any job. The job that I need to schedule here is very specific for an application I'm writing for one of my clients. The scheduler will run as a console ...
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 ...
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 ...