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
81 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 ...
2
votes
1answer
570 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 ...
2
votes
1answer
107 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) ...
2
votes
1answer
171 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 ...
2
votes
0answers
39 views

Task scheduling

A simple design for task scheduling using the following classes/interfaces. ...
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 ...
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 ...
2
votes
0answers
555 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
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 ...
2
votes
0answers
81 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 ...
1
vote
2answers
68 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 ...
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 ...
1
vote
1answer
567 views

PowerShell - Execute Windows Task Scheduler

...
1
vote
0answers
8k 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 ...
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
68 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 ...
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 ...
1
vote
0answers
88 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 ...
0
votes
1answer
810 views

Promise-based fixed delay poller with timeout

I have the following functions for polling some function periodically with a timeout ...
0
votes
2answers
187 views

Streamlining a method to run faster

I did some guesswork tweaking and let the heap reach a maximum of ~450 megabytes (was originally using invokeAll). The program just finished in 6.3 minutes. I've ...

1
2