SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
running the same job twice

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
running the same job twice
Author Message
Rafał Jank



Joined: 27 Nov 2006
Posts: 3

Post running the same job twice Reply with quote

Hi,

we have the following problem:
we have a job runned when certain files are found, and the semaphore file is deleted befor job is runned.
Usually it works as expected, but last time the job was runned twice - accordin to logs the start date of both jobs was identical.
How is it possible and how can we avoid this?

Thx
Rafal

Mon Nov 27, 2006 6:51 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: running the same job twice Reply with quote

Are there 2 job finish events as well? Are you sure the job run twice and it is not a problem with the log file?

: Hi,

: we have the following problem: we have a job runned when certain files are
: found, and the semaphore file is deleted befor job is runned.
: Usually it works as expected, but last time the job was runned twice -
: accordin to logs the start date of both jobs was identical.
: How is it possible and how can we avoid this?

: Thx
: Rafal

Mon Nov 27, 2006 8:58 am View user's profile Send private message
Rafał Jank



Joined: 27 Nov 2006
Posts: 3

Post Re: running the same job twice Reply with quote

: Are there 2 job finish events as well? Are you sure the job run twice and it
: is not a problem with the log file?
This is not a problem with log file - this jobs runs sql procedure and it is clear, that it was run twice. Also, end time for this jobs is different

Mon Nov 27, 2006 9:36 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: running the same job twice Reply with quote

IS the file renamed before or after job run? Which version of 24x7 are you using?

: This is not a problem with log file - this jobs runs sql procedure and it is
: clear, that it was run twice. Also, end time for this jobs is different

Mon Nov 27, 2006 10:00 am View user's profile Send private message
Rafał Jank



Joined: 27 Nov 2006
Posts: 3

Post Re: running the same job twice Reply with quote

: IS the file renamed before or after job run? Which version of 24x7 are you
: using?
File is deleted before job run.
The version is 3.4.21.
I don't think this is the situation that the semphore file was created twice, because there is only one message
"semaphore found" and two messages "Job started".

Mon Nov 27, 2006 10:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: running the same job twice Reply with quote

I didn't mean that the file is created twice. I meant to say if the file is deleted or renamed after job run and the job takes a while to run, then the scheduler can find the same file again before the job is complete and will launch second job instance.

I suggest you upgrade to a more recent version 3.4.26. That version will not lauch new job instance while old instance is still running.
The upgrade is free

: File is deleted before job run.
: The version is 3.4.21.
: I don't think this is the situation that the semphore file was created twice,
: because there is only one message
: "semaphore found" and two messages "Job started".

Mon Nov 27, 2006 11:31 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.