× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The easiest way to submit more jobs is to have one job that does a message peek every so often and sees how many queue entries there are. If greater than a pre-described number, submit another processing job.

A second method is to have the process job look at how long an entry was sitting on cue, if greater than a pre-described time, submit another processing job. I use a data area to keep track of the number of jobs running but you can also use an API to get the count. So when a data queue wait times out, you check to see if there are more than a pre-described number of job running, if so, you end.


Chris Bipes
Director of Information Services
CrossCheck, Inc.

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Campin
Sent: Wednesday, September 14, 2016 11:09 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Prestart jobs... how does it work ?

If you are interested, I have just done a lot of work with pre-start jobs
for an open source project I am working on.

As part of that project I have a service program that provides a simple
interface to submit pre-start jobs using spawn. That code is available.

The problem I see here is that you are going to need more than pre-start
jobs. All they do is give you a way to start quicker.

The problem is that you have to know when to submit a new job. Ending the
job is pretty easy. You just time out on the data queue if you have not
received work for some period of time.

The trickee part is knowing when to startup new jobs.

The only good solution I can think of is to have each processing job to
send a message through another data queue to a single program saying how
long it had to wait. When time waiting exceeded a certain value, start
another job.

Another possibility might be to have to processing check the time waiting
and do the submit if exceeded.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.