|
But they could be written to do something. That job that you use as an
Autostart could be set up as a prestart if there is a problem if it goes
away.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----Alan Campin <alan0307d@xxxxxxxxx> wrote: -----
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
From: Alan Campin <alan0307d@xxxxxxxxx>
Date: 09/14/2016 03:05PM
Subject: Re: Prestart jobs... how does it work ?
Not completely true. The operating system starts pre-start jobs based on
the number of initial jobs in request in the subsystem pre-start job entry
but they just sit there. They are pre-started but they are not doing
anything. They just go to sleep. It is the spawn that cause the operating
system to look for a pre-start job and execute the program that you
requested. Unless you run spawn, the jobs will simply sit there until the
subsystem ends.
On Wed, Sep 14, 2016 at 11:55 AM, Mark Murphy/STAR BASE Consulting Inc. <
mmurphy@xxxxxxxxxxxxxxx> wrote:
Why do you need an Autostart? Prestart jobs start automatically as well,which
and act just like Autostarts, except prestarts don't always go away when
ended, the system starts them back up if necessary.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----Alan Campin <alan0307d@xxxxxxxxx> wrote: -----
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
From: Alan Campin <alan0307d@xxxxxxxxx>
Date: 09/14/2016 02:46PM
Subject: Re: Prestart jobs... how does it work ?
The pre-start job thing is not to hard. The hardest part is spawn api
is why I wrapped it in a service program.pre-start
To use pre-start jobs, you start with a sub-substem. Normally you would
want a dedicated subsystem.
You create a subsystem description, two job descriptions (One for
jobs and one for autostart jobs).first
You create a job queue
You write a program for use as an auto-start program. Your controller.
You add an autostart entry to the sub-system.
You add a single routing entry.
You add a job queue entry.
You add a pre-start job entry.
You write a program to is be started up when you spawn.
You start up your subsystem.
The controller job is responsible for running the spawn, at least the
one.chris.bipes@xxxxxxxxxxxxxxx
On Wed, Sep 14, 2016 at 11:24 AM, Chris Bipes <
waswrote:
The easiest way to submit more jobs is to have one job that does amessage
peek every so often and sees how many queue entries there are. Ifgreater
than a pre-described number, submit another processing job.
A second method is to have the process job look at how long an entry
jobssitting on cue, if greater than a pre-described time, submit anotherqueue
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
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
pre-startfor 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
thejobs. 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
howjob 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
waitinglong 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
listand do the submit if exceeded.list
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxxlist
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
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.