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

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
140 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 ...
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 ...
3
votes
0answers
101 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 ...
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 ...
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
456 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
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
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 ...
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 ...
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? ...
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 ...
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
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 ...