 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
NathanW
Joined: 05 Feb 2009 Posts: 51 Country: United Kingdom |
|
Deleting job with COM API |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7954
|
|
|
|
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 |
|
 |
NathanW
Joined: 05 Feb 2009 Posts: 51 Country: United Kingdom |
|
|
|
Great, thanks.
|
|
Fri Feb 20, 2009 9:04 am |
|
 |
|
|
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
|
|
|