SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
job not producing semaphore !!!!

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
job not producing semaphore !!!!
Author Message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post job not producing semaphore !!!! Reply with quote

my job runs and it set to produce a semaphore file but doesn't - as a result the job that depends on this semaphore never runs - why is this please ?

Fri Jul 19, 2002 9:35 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: job not producing semaphore !!!! Reply with quote

There are could be 3 reasons:
1. the semaphore file is created in another directory (is the file path specified?)
2. the job does not complete and hangs or just fails
3. the finish notification event is not checked

: my job runs and it set to produce a semaphore file but doesn't - as a result
: the job that depends on this semaphore never runs - why is this please ?

Fri Jul 19, 2002 10:05 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

: There are could be 3 reasons: 1. the semaphore file is created in another
: directory (is the file path specified?)
: 2. the job does not complete and hangs or just fails
: 3. the finish notification event is not checked

I am not defining a path - I leave it to default to 24x7 as it works for other jobs, I will try defining a path.

Fri Jul 19, 2002 10:07 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

The job does not seem to finish correctly - there are no error messages but I set the "delete sempahore" to "after run" and it is still there which suggests the jobs is still running for some reason but when I look at the logs they say it has finished - I don't know what to do now, I could rewrite it all in JAL but really it would be nice if it worked automatically.

Fri Jul 19, 2002 10:36 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

if I run the job manually doing "Run No" and as long as the semaphore file is there is works fine, why is this ?? Is my job database corrupt ???

Fri Jul 19, 2002 10:56 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: job not producing semaphore !!!! Reply with quote

Run Now causes the job to run in foreground and out of queue regardless of the asynchronous/synchronous job settings. Check if this setting somehow affects the semaphore file related job behavior.

Did the addition of file path change anything?

: if I run the job manually doing "Run No" and as long as the
: semaphore file is there is works fine, why is this ?? Is my job database
: corrupt ???

Fri Jul 19, 2002 11:09 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

: Run Now causes the job to run in foreground and out of queue regardless of
: the asynchronous/synchronous job settings. Check if this setting somehow
: affects the semaphore file related job behavior.
no the path did not change anything.
The job is running on a remote agent.
I tell it to produce the file d:\semaphores\file.txt where d:\ is on the LOCAL server which is running the master scheduler - is it OK to do this ? It works OK when I invoke Run Now. What setting are you talking about exactly (above) ?
I have told it to run asynchronous and hidden and also have detached checked.

Fri Jul 19, 2002 11:15 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

: no the path did not change anything.
: The job is running on a remote agent.
: I tell it to produce the file d:\semaphores\file.txt where d:\ is on the
: LOCAL server which is running the master scheduler - is it OK to do this ?
: It works OK when I invoke Run Now. What setting are you talking about
: exactly (above) ?
: I have told it to run asynchronous and hidden and also have detached checked.
I now switch off asynchronous and detached and it works - I don't want the server to hang tho - that is why I originally switched on asynchronous

Fri Jul 19, 2002 11:23 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: job not producing semaphore !!!! Reply with quote

Click the "refresh" button to refresh job log view. Are there any errors or warnings.

Does the log for the job look like the following:
1. Found semaphore file...
2. Job started...
3. Agent ... contacted
4. Remote job finished...

IMPORTANT: what's in the record 4? Remote job finished or Remote job posted for execution?

: no the path did not change anything.
: The job is running on a remote agent.
: I tell it to produce the file d:\semaphores\file.txt where d:\ is on the
: LOCAL server which is running the master scheduler - is it OK to do this ?
: It works OK when I invoke Run Now. What setting are you talking about
: exactly (above) ?
: I have told it to run asynchronous and hidden and also have detached checked.

Fri Jul 19, 2002 11:57 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: job not producing semaphore !!!! Reply with quote

Create a separate job queue and put that job into it. It will have the same effect as running asynhronously however the job itself will run synhronously and everything should work as expected. You can still run it detached.

: I now switch off asynchronous and detached and it works - I don't want the
: server to hang tho - that is why I originally switched on asynchronous

Fri Jul 19, 2002 11:59 am View user's profile Send private message
Dominic Klein



Joined: 23 Nov 2001
Posts: 132

Post Re: job not producing semaphore !!!! Reply with quote

: Create a separate job queue and put that job into it. It will have the same
: effect as running asynhronously however the job itself will run
: synhronously and everything should work as expected. You can still run it
: detached.
I created a new queue and run the job and I still cannot navigate thru the scheduler until the job finishes

Mon Jul 22, 2002 9:14 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: job not producing semaphore !!!! Reply with quote

Set job priority to Low in order to prevent if from consuming too much CPU processing.

Don't run the job manually. Manually triggered jobs by default run in the foreground.

: I created a new queue and run the job and I still cannot navigate thru the
: scheduler until the job finishes

Mon Jul 22, 2002 11:09 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.