SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Asynchronous jobs - problems

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Asynchronous jobs - problems
Author Message
Pat Franklin



Joined: 28 Apr 2000
Posts: 14

Post Asynchronous jobs - problems Reply with quote

By checking Asynchronous process on the Job Properties Wizard my job does not run.
With the box unchecked it runs fine, with the box checked no go.

Here is what the job does:

JobRemoteRun( "74", "SCPO" )

Just one line.

Also,

The help has conflicting stories on remote jobs and running asyncronously.

If this job has asynchronous option set off, the main 24x7 Scheduler will wait while the job is being executed by the Remote Agent on the remote computer.
If the job has asynchronous option set on, the main 24x7 Scheduler will post the job for asynchronous execution on the remote computer and after that
immediately continue normal job processing.

The 24x7 Scheduler supports both synchronous and asynchronous communications between the main 24x7 Scheduler and a Remote Agent. For remote jobs,
the 24x7 Scheduler chooses communication mode that matches execution mode specified in the job properties.

Also, when running a job on a remote computer with the asynch box check on both the connection and the job properties, I get this in the trace file:

DPB01 Connection(02D55DA8): ConnectToServer : application(10095), location(corp-man1), driver(WinSock). ... (00000000)
DPB01 Connection(02D55DA8): ConnectToServer : application(10095), location(corp-man1), driver(WinSock). SUCCEEDED (00000000)
DPB43 SessionId (09E60120): Create Object : className(n_gateway), instanceId(FFFFFFFF). ... (00000000)
DPB43 SessionId (09E60120): Create Object : className(n_gateway), instanceId(00000460). SUCCEEDED (00000000)
DPB48 SessionId (09E60120): Invoke : instanceId(00000460), uf_executejob(IO), numArgs(1) SYNCHRONOUS
DPB44 SessionId (09E60120): Destroy Object: instanceId(00000460)
DPB02 Connection(02D55DA8): DisconnectServer: ... (00000000)
DPB02 Connection(02D55DA8): DisconnectServer: SUCCEEDED (00000000)

I was just wondering shy it would say synchronous if the help says "If the job needs to be executed asynchronously, the main 24x7 Scheduler
communicates to the Remote Agent using asynchronous calls, otherwise it calls the Remote Agent synchronously and the Remote Agent runs the
submitted job also synchronously."


Fri Apr 28, 2000 4:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7838

Post Re: Asynchronous jobs - problems Reply with quote

JobRemoteRun and other JobXXX statements cannot be used in ASYNC. jobs. Check the job log, you should see something like "Statement JobRemoteRun is not supported in asynchronious scripts"

The reason for this is that all async. jobs run in their own virtual environment, a sandbox, and they cannot access other jobs because virtually other jobs simply don't exist in their environment.

Also, for the remote jobs you can play with the remote agent profile settings (see async. connection option). You could have a SYNC. job to be posted for execution by the remote agent, thus simulation ASYNC. job.

: By checking Asynchronous process on the Job Properties Wizard my job does not
: run.
: With the box unchecked it runs fine, with the box checked no go.

: Here is what the job does: JobRemoteRun( "74", "SCPO" )

: Just one line.

: Also,

: The help has conflicting stories on remote jobs and running asyncronously.

: If this job has asynchronous option set off, the main 24x7 Scheduler will
: wait while the job is being executed by the Remote Agent on the remote
: computer.
: If the job has asynchronous option set on, the main 24x7 Scheduler will post
: the job for asynchronous execution on the remote computer and after that
: immediately continue normal job processing.

: The 24x7 Scheduler supports both synchronous and asynchronous communications
: between the main 24x7 Scheduler and a Remote Agent. For remote jobs,
: the 24x7 Scheduler chooses communication mode that matches execution mode
: specified in the job properties.

: Also, when running a job on a remote computer with the asynch box check on
: both the connection and the job properties, I get this in the trace file:
: DPB01 Connection(02D55DA8): ConnectToServer : application(10095),
: location(corp-man1), driver(WinSock). ... (00000000)
: DPB01 Connection(02D55DA8): ConnectToServer : application(10095),
: location(corp-man1), driver(WinSock). SUCCEEDED (00000000)
: DPB43 SessionId (09E60120): Create Object : className(n_gateway),
: instanceId(FFFFFFFF). ... (00000000)
: DPB43 SessionId (09E60120): Create Object : className(n_gateway),
: instanceId(00000460). SUCCEEDED (00000000)
: DPB48 SessionId (09E60120): Invoke : instanceId(00000460), uf_executejob(IO),
: numArgs(1) SYNCHRONOUS
: DPB44 SessionId (09E60120): Destroy Object: instanceId(00000460)
: DPB02 Connection(02D55DA8): DisconnectServer: ... (00000000)
: DPB02 Connection(02D55DA8): DisconnectServer: SUCCEEDED (00000000)

: I was just wondering shy it would say synchronous if the help says "If
: the job needs to be executed asynchronously, the main 24x7 Scheduler
: communicates to the Remote Agent using asynchronous calls, otherwise it calls
: the Remote Agent synchronously and the Remote Agent runs the
: submitted job also synchronously."

Fri Apr 28, 2000 5:22 pm 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.