SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Deleting job with COM API

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Deleting job with COM API
Author Message
NathanW



Joined: 05 Feb 2009
Posts: 51
Country: United Kingdom

Post Deleting job with COM API Reply with quote
I currently schedule a job dynamically and I want the job to delete itself after it has executed. The job itself is and EXE which I created that can talk to the 24x7 server via COM. Is it ok for the EXE to delete the job that it is called from. The job is being run detached and in sync mode.

Thanks.
Fri Feb 20, 2009 3:01 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Reply with quote
Yes, it is ok to delete jobs using this method. The job instance is running in a queue (in memory), the delete operation applies to the job definition stored in the job database file, which removes that definition. Because of this separation, it doesn't really matter whether the job instance deletes its own definition from the job database or some other job, it doesn't affect the queues.
Fri Feb 20, 2009 8:47 am View user's profile Send private message
NathanW



Joined: 05 Feb 2009
Posts: 51
Country: United Kingdom

Post Reply with quote
Great, thanks.
Fri Feb 20, 2009 9:04 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.