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
2
votes
1answer
51 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 ...
3
votes
0answers
99 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
2answers
13k 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 ...
3
votes
1answer
97 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
0answers
452 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": ...
2
votes
1answer
80 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 ...
4
votes
1answer
74 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
74 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
1answer
114 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 ...
4
votes
2answers
205 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
0answers
42 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 ...
3
votes
2answers
85 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
42 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 ...
2
votes
1answer
73 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 ...
1
vote
1answer
361 views
8
votes
2answers
56 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
437 views

Promise-based fixed delay poller with timeout

I have the following functions for polling some function periodically with a timeout ...
5
votes
1answer
105 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
121 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 ...
5
votes
0answers
138 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
554 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
74 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
7k 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
495 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
164 views

Pausing task until designated time using sleep()

I have been playing around with schedule from GitHub. How can I improve the code? ...
3
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 ...
1
vote
0answers
65 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
778 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
765 views

Auto backup Chrome bookmarks

This script, once added to the Windows Scheduler, automatically creates a backup of your Google Chrome bookmarks. ...
17
votes
3answers
39k views

C++ Task Scheduler

I needed a task scheduler that could be used somehow like this: ...
6
votes
2answers
316 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 ...
4
votes
2answers
48 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
1answer
64 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
232 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 ...
2
votes
1answer
103 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
1answer
573 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
172 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 ...
6
votes
1answer
2k 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 ...
2
votes
0answers
80 views

PHP cron job for updating broadcast status

I am currently working on a re-occurring broadcast schedule. The whole idea is to setup a cron/task job that will update the broadcast flag "isLive" in a database table. Are there other options to ...
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 ...
3
votes
1answer
408 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 ...
5
votes
1answer
301 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 ...
1
vote
0answers
87 views

Cron job that sends an email

The following is a sample cron job I've written that sends an email with some conditions. I haven't run it yet but I'm using another cron job (and will rewrite very soon) that does the same thing but ...
0
votes
2answers
118 views

Collection of schedules

I hava a collection of schedules - EventSchedules. I want to select from this collection today, tomorrow and after tomorrow schedules. The day start from 06:00 and ...
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
1answer
168 views

Scheduling real world events for Arduino project

I am working on a project that involves scheduling real world events for a pool. Example: turn a pump on at 8AM, turn heater on at 9 AM, set heating temperature to 80 degrees, turn the pump off at 10 ...