Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Preventing daily jobs from running over themselves ...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Preventing daily jobs from running over themselves ...
 Login/Join
 
Member
posted
If I have a scheduled process flow, say, "Job 1." If Job 1 runs every day, and for some reason, it takes a while to run due to database issues, or something malfunctioning, how can I ensure Job 1 does not start running while it is already currently being run?

This message has been edited. Last edited by: Kerry,


Webfocus relase 764
Linux
All mentioned including AHTML
 
Posts: 13 | Registered: July 10, 2009Report This Post
<JG>
posted
use the same method that most systems use.

Write a lock file and check if it exists or if it contains a certain value.
Then terminate the job if it has the wrong value.

Something like

! STATE d:\temp\lock.lck
-RUN
-IF &RETCODE EQ 0 GOTO ENDJOB;
-*
FILEDEF LOCK DISK d:\temp\lock.lck
-RUN
-WRITE LOCK Y
-*
-* YOUR CODE GOES HERE
-*
!DEL d:\temp\lock.lck
-ENDJOB
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Preventing daily jobs from running over themselves ...

Copyright © 1996-2020 Information Builders