SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
24x7 COM Object: RunJob function

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
24x7 COM Object: RunJob function
Author Message
thuan



Joined: 29 Aug 2002
Posts: 22

Post 24x7 COM Object: RunJob function Reply with quote

Can you elaborate more on the RunJob COM function? It's not
entirely clear to me on what the "Detached" boolean does.
Referencing the API documentation, what's meant by "Run the job using
a separate instance of 24x7 scheduler"?
Does the function create its own instance of the 24x7 Remote Control
COM object?

I'm also interested in what "job specifics" might mean in the "Note:" section of
the documentation.

For the couple jobs I started with this call, and "Detached" equals FALSE,
24x7 job logs return an error message of "Unable to release thread JOB_THREAD0"
This error is not occur with "Detached" equal TRUE.

Any details would be great.

Thanks,
Thuan

Tue Aug 19, 2003 1:23 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: 24x7 COM Object: RunJob function Reply with quote

Detached means that the job is not run in the scheduler process memory space. It is run by a separate instance of 24x7.exe process. Basically this property controls how the job is invoked and run.

Using "detached=true" is the same as running the job from the DOS command line using "24x7.exe /JOB" command. If you open the Task Manager you will find 2 instances of 24x7.exe.

The function does not create its own instance of the 24x7 Remote Control COM component.

: Can you elaborate more on the RunJob COM function? It's not
: entirely clear to me on what the "Detached" boolean does.
: Referencing the API documentation, what's meant by "Run the job using
: a separate instance of 24x7 scheduler"?
: Does the function create its own instance of the 24x7 Remote Control
: COM object?

: I'm also interested in what "job specifics" might mean in the
: "Note:" section of
: the documentation.

: For the couple jobs I started with this call, and "Detached" equals
: FALSE,
: 24x7 job logs return an error message of "Unable to release thread
: JOB_THREAD0"
: This error is not occur with "Detached" equal TRUE.

: Any details would be great.

: Thanks,
: Thuan

Tue Aug 19, 2003 1:50 pm View user's profile Send private message
Philip



Joined: 15 Dec 2003
Posts: 1

Post Re: 24x7 COM Object: RunJob function Reply with quote

: Can you elaborate more on the RunJob COM function? It's not
: entirely clear to me on what the "Detached" boolean does.
: Referencing the API documentation, what's meant by "Run the job using
: a separate instance of 24x7 scheduler"?
: Does the function create its own instance of the 24x7 Remote Control
: COM object?

: I'm also interested in what "job specifics" might mean in the
: "Note:" section of
: the documentation.

: For the couple jobs I started with this call, and "Detached" equals
: FALSE,
: 24x7 job logs return an error message of "Unable to release thread
: JOB_THREAD0"
: This error is not occur with "Detached" equal TRUE.

: Any details would be great.

: Thanks,
: Thuan

Sun Dec 14, 2003 4:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: 24x7 COM Object: RunJob function Reply with quote

The detached option if set to true causes the job to run in the background. The control is returned back to the calling program immediately. If detached option is the set to false the job runs in the foreground and the control is returned back only after the job is complete.



Mon Dec 15, 2003 9:32 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.