Reusability of trunjob

Six Stars

Reusability of trunjob

Hi Team

 

I have 30 jobs all are using Same code so i kept it in tRunjob and using the same code,Now can i run all the 30 jobs at a time in parallel in enterpise studio.

If i do so will the job work fine

or will their be any lock on the job since same job is called many times.

Quick Response is much appriciated.

 

Thanks

Deepthi

Four Stars

Re: Reusability of trunjob

Could you please brief what do you mean by same code and provide the screenshot of child job.

Regards,

Ajinkya

Sixteen Stars

Re: Reusability of trunjob

The job you are running using the tRunJob can be considered a Java Class. Every time you run this Job you are actually instantiating a new Instance of the Class. So yes, you can run them all in parallel with no issues.....other than potential memory and thread issues that you will have to consider.

Four Stars

Re: Reusability of trunjob

I agree to @rhall_2_0 but if  the job updates/ inserts records in same DB table, that will cause a lock on the table. That's the reason wanted to understand the function/role of your job.

Regards,

Ajinkya