Questions tagged [scheduling]

58 questions
125
votes
11 answers

Prevent duplicate cron jobs running

I have scheduled a cron job to run every minute but sometimes the script takes more than a minute to finish and I don't want the jobs to start "stacking up" over each other. I guess this is a concurrency problem - i.e. the script execution needs to…
Tom
  • 4,157
  • 11
  • 41
  • 52
15
votes
1 answer

Count number of allowed CPUs in a Docker container

My specific scenario is the following. I launch a docker container with a specific cpuset: docker run --cpuset-cpus="0-2" # ... inside that container I run a shell script as the entry point and that shell script will run make at some point. I would…
pmr
  • 425
  • 1
  • 4
  • 9
12
votes
4 answers

How can I prevent a scheduled task from running if the same task is already running?

I have written a php script to check if there are any new files in a folder and, if any new files exist, upload them to a server. These files can be quite large. I want to run this script frequently-let's say every 5 min-as a scheduled task so…
Oren Hizkiya
  • 237
  • 1
  • 2
  • 6
12
votes
5 answers

Why is Windows Task Scheduler trying to launch multiple instances?

We have a number of Windows Scheduled tasks that run on one Server 2008 Webserver (not R2) which is in a cluster. We recently moved from an original webserver Cluster to a new webserver Cluser (Server 2008 - not R2). The new webserver (in the…
Paul H
  • 175
  • 2
  • 3
  • 8
5
votes
1 answer

ionice vs. Software-RAID

Does ionice work in Software-RAID environments? I cannot set the CFQ scheduler for the md devices, because there is no file /sys/block/md0/queue/scheduler . It seems that the scheduler settings for the underlying disks are not propagated to the raid…
der_flo
  • 51
  • 3
5
votes
2 answers

Program to manage process workflow across machines?

I have an in-house Perl script that is in great need of refactoring. In the interest of not reinventing the wheel, I'm looking to see if an open-source equivalent to it exists, and I'm having trouble finding one. The script runs as a daemon on all…
Justin Ellison
  • 718
  • 5
  • 9
5
votes
1 answer

AD: Roll out an MSI application at midnight

Using Windows Server's Active Directory and Group Policy, is there a way to roll out an MSI file at a scheduled time, like midnight?
Vlueboy
  • 153
  • 3
5
votes
3 answers

What is the difference between renice and chrt commands in Linux?

What is the difference between renice and chrt commands in Linux?
halp
  • 2,098
  • 1
  • 19
  • 13
4
votes
3 answers

Preventing double booked appointments in Outlook

At our organization we use a series of shared Outlook calendars to schedule out our conference rooms. All domain users are setup as authors of these calenders. We are now running into a problem where the end user is either not checking/caring if a…
Psycho Bob
  • 816
  • 2
  • 13
  • 23
3
votes
1 answer

Debugging and fine-tuning the linux process scheduler

When debugging sporadic web application slowdowns, I've found that all the processes have quite high maximum scheduling delay. # perf sched record -- sleep 10 && perf sched latency --sort max …
3
votes
3 answers

SQL Server Job system silently fails

We run numerous scheduled jobs using MS SQL 2005 job scheduler. Over the past few weeks, we've been witnessing that a running job will simply STOP and will not record any history in the Log File Viewer. What appears to be happening is that the…
Brett Veenstra
  • 1,487
  • 5
  • 18
  • 27
3
votes
2 answers

Outlook 2010 Calendar - Unable to See Free/Busy Scheduling

I am having an issue where random user cannot see others Free/Busy Scheduling in Outlook Calendar 2010. The set up is pretty simple with one domain. I have been Googling all morning, I am unable to find even one good explanation why this is…
Arief
  • 173
  • 4
  • 5
  • 19
3
votes
10 answers

Batch processing on Linux

We're currently setting up a server to some heavy lifting (ETL) after another process has finished within the business, at the moment we're firing off jobs either via scheduled cron jobs or remote execution (via ssh). Early on this week we hit a…
Andrew Williams
  • 667
  • 8
  • 20
2
votes
1 answer

Give pthread_setschedparam() permissions to non-root user (linux)

How can I give a non-root user permission to execute pthread_setschedparam() to set thread priorities? Thank you
Nash
  • 121
  • 1
  • 3
2
votes
2 answers

What are front merges in I/O scheduling and how can I tune this parameter?

My Linux uses the Deadline algorithm for I/O scheduling. One of the parameters is the front_merges parameter under /sys/block/sda/queue/iosched/front_merges. By default it is set to 1, which means front merges are likely to occur. One can set it to…
Ely
  • 150
  • 1
  • 9
1
2 3 4