scheduling

Placing a Quartz Scheduler in Stand-by Mode

You can place a Quartz scheduler in stand-by mode. During this time all triggers will not fire neither jobs being executed. But what happend if the standby(); command comes up during a job that is in the middle of its execution, let's say it is in the middle of writing a file? example: *// start() was previously invoked on the schedul...

Sharepoint as a high volume information system

I'm looking at designing some core information systems at a new company I'm working at (described one of my ideas here http://stackoverflow.com/questions/908705/workflow-system) I've thought a bit more, and am strongly considering using sharepoint for a lot of the heavy lifting seeing as it comes with so much out of the box. However, I...

How do I schedule one-time tasks from a Perl CGI application?

I am writing an application to allow users to schedule one-time long-running tasks from a web application (Linux/Apache/CGI::Application). To do this I use the the Schedule::At module which is the Perl interface to the "at" command. Since the scheduled tasks are not repeating, I am not considering "cron". I have two issues with "at" thou...

Schedule method invocation C#

I'm using c# to communicate with twitter and i need to code a schedule system to send twitter messages at a user defined date. The messages to be sent are in a database with the date and time of deliver. Which is the best method to check the db for scheduled messages and send it when the time arrives? ...

Selecting a Linux I/O Scheduler

I read that it's supposedly possible to change the I/O scheduler for a particular device on a running kernel by writing to /sys/block/[disk]/queue/scheduler. For example I can see on my system: anon@anon:~$ cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] that the default is the completely fair queuing scheduler. ...

How can I do Time based / scheduled events in .NET ?

Hi folks, I need to offer scheduling of actions/events, in our web site. A crap analogy could be a calendar system, where a person adds a calendar item and when the date/time has been 'hit', then some logic (eg calculate a report) is fired. I could be having hundreds and even thousands of scheduled events that are entered by my clients...

Making a J2ME Midlet sleep without threads?

Hi All .... Quick question ... Using J2ME (CLDC 1.1, MIDP-2.1) is it possible to sleep the Midlet for a period of time (not using threads)... For example: public class myMidlet extends MIDlet{ public void startApp() { /* Sleep for 10 seconds */ /* The answer was: */ try { Thread.sleep(time_ms); ...

large scale time triggered event handling

Another question in large scale programming: I have a job queue with time stamps and target file name. (For each timestamp, there might be up to 500 target files to process). The processing algorithms are the same for all the 500 target files. I want to do: Write program in Java whenever arriving at the timestamp, trigger all the 500...

Scheduling

Schedulers in contemporary operating systems implicitly give higher priority to I/O bound process over CPU bound processes. Do you think that while scheduling the processes, CPU bound processes should be given higher priority as compared to I/O bound processes so that the throughput could be increased. ...

Job queue optimization algorithms

We have an application that requires assignment of jobs to resources. The resources have a number of attributes that define their suitability to a particular job -- some are preferences, some are hard constraints (all of the membership variety, e.g. "resource A is suited to jobs with color X, Y, or Z". Resources have a cost associated w...

python long running daemon job processor

I want to write a long running process (linux daemon) that serves two purposes: responds to REST web requests executes jobs which can be scheduled I originally had it working as a simple program that would run through runs and do the updates which I then cron’d, but now I have the added REST requirement, and would also like to chang...

CRONTAB for mobiles

Hi there, I was just wondering, but some one might have already thought off! Is it possible to built a crontab type application for mobile phones (for Java enabled phones)? I am thinking of an application, which, does checks at scheduled timings and on certain cases acts without manual intervention. Have any one built such an applicat...

What is a realistic (but fast) beta versioning schedule?

My team is close to deploying our application, and we're about to go into closed beta with some select customers. I'm wondering what a realistic timeframe would be for producing new beta versions, and how many such cycles we could realistically expect to need before we can call the first version stable enough for release. The applicati...

What approach would you recommend for implementing web-based schedulers

Hi, I have found that I often have to implement some sort of a scheduler in the applications I develop. The applications can range from simple maintenance tasks to fairly complex. So far my approach has been to set up cron jobs that essentially do batch processing of queued commands. For example, I have cron invoking a script (I am wor...

How is this Quartz Cron Expression executed

I have a the following; private String cronExpression = ""; private final String jobID = "MyJObID"; ... Scheduler scheduler = ServiceLocator.getInstance().getScheduler(); CronTrigger trigger = new CronTrigger(jobID , Scheduler.DEFAULT_GROUP, cronExpression); JobDetail jobDetail = new JobDetail(jobID , Scheduler.DEFAULT_GROUP, MyJob.clas...

How to model and store recurring tasks in rails?

Cron solutions in rails are numerous and pretty good. That's not what I'm struggling with here. Instead, what I'm having trouble with is letting users create their own recurring tasks (like reminders) - specifically how to model and store these in the DB (a good UI for it is non-trivial too - would be awesome if there was code out ther...

Most efficient way to implement preemptive waiting queue?

Hi all. I've been racking my brain trying to figure this out. Here is the scenario. I essentially have a sorted static list that contains various times that an event is supposed to happen. For visualization: +-----------------------+ | Time | LastUpdate | |-----------------------| | 1 | 03:10:00 | 0 | 2 | 03:10:00...

Database design -- NULL or a max value to indicate this date value?

SO I'm working on a schedule app that uses a MySQL DB. One of the modules for this site is for managers to track tardiness, overtime, and absents. The current site is a mess. It just has the manager enter in the key data, but it doesn't bind the manager to any of the already known data (like when the employee was expected to arrive/leave...

What to use as foriegn key if no match in the other table - MySQL

I am working on an attendance/overtime module for a schedule web app. The idea is that there is a table in MySQL of shifts, each shift having a start and end time. The manager will choose a shift and make an entry into the attendance table specifying whether the employee was early/late/left early/worked overtime. That entry in the attend...

Please point me the tools or the way to monitor which thead in running in the millisecond level

Hi , Please point me the tools or the way to monitor which thead in running in the millisecond level? Thanks. Suppose I have 3 thread running , and I want infomation like below: 0 - 20ms thread1 20 - 40ms thread2 40 - 50ms thread1 50 - 70ms thread3 NOTES: I perfer to solve this problem without hacking into kernel. EDIT : ...