TAC - ESB Conductor : apply context to child

Highlighted
Five Stars

TAC - ESB Conductor : apply context to child

Hi.

Version : Talend v6.1

 

Into the TAC, under the "Job Conductor" tab, I can select the context execution for my job, and I've got the "Apply context to children" checkbox.

So, if I choose that my parent job is executing with the PROD context, all the child jobs will excecute with the PROD context.

It works fine.

 

Into the TAC under the "ESB Conductor" tab, I can select the context execution for my WebService (just under "Runtime Config").

But I haven't got the "Apply context to children" checkbox !

So, whereas my parent job is executing with the PROD context, the child jobs don't execute with the PROD context. In fact, the childs maintain the excecution context that I had defined into the tRunJob component, when I had developped the jobs into the Studio.

 

I am wrong in my process ? 

Is there a workaround, to have this "Apply context to children" feature, on the service into the "ESB Conductor" ?

 

Moderator

Re: TAC - ESB Conductor : apply context to child

Hello,

Could you please check the option "transmit whole context" in all of the tRunjob? Let us know if this issue is resolved.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: TAC - ESB Conductor : apply context to child

Hi Sabrina.

Thanks for response.

 

With the option "transmit whole context" checked, the context variables declared into the parent job are transmitted to the child job.

It's not what I want to do.

 

The goal is the following :

 

In my parent child, I've got 2 contexts (DEV and PROD).

In my child jobs, I've got the same 2 contexts (DEV and PROD).

 

In my child job "job_generate_logs", wich responsability is to generate logs in a specified repository, I've got a group context "ctx_path_logs" (only added in this child job, because it is his own responsability, not in his parent).

FYI : "ctx_path_logs" describes the paths where to write the logs, for the DEV environment and for the PROD environment.

 

Before publish, I can set, into the tRunJob component, the rigth context. But it's vey tiresome to do this action for all my tRunJob, at each time I want to split DEV or PROD.

So I want to use, into the TAC, in the "ESB Conductor" tab,  the runtime configation of the service : select the rigth context here (for example PROD context). But when I do that, only the parent job is running with the PROD context. The child jobs stay running with the context itinialized into the tRunJob component.

 

However, the "Job Conductor" tab, for the task, have the "Apply context to children" option ; that's work finely, even if the tRunJob components specified an different context. It's very usefull.

I would like to have the same feature in the "ESB Conductor" tab.

Moderator

Re: TAC - ESB Conductor : apply context to child

Hello,

It seems the context is not applied to children jobs when the parent job is published from Studio to the Artifact repository and then run in TAC.

Does it work with build a zip file, then import the zip file from TAC rather than an "artifact" task from Nexus?

Best regards

Sabrina

 

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Eight Stars

Re: TAC - ESB Conductor : apply context to child

Hi @xdshi,

how to import a zip from TAC ?

Moderator

Re: TAC - ESB Conductor : apply context to child

Hello,

Please let us know if this online user guide helps.

https://help.talend.com/reader/RK~CAb9nJ1erxR8SrBbKoQ/gy4G6M2uUTOfL5k5NootZA

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Eight Stars

Re: TAC - ESB Conductor : apply context to child

Thanks for replying. The link you provided is helpful.

However, when I import the zip file of the job (built from the Studio as standalone binary, items + java sources checked), TAC said: "this job was created by an unsupported version of Talend Studio...". I am using version 7.1.1. 

What may go wrong?

Moderator

Re: TAC - ESB Conductor : apply context to child

Hello,

When you build or publish a Job, you must select the Items check box to include the Job items file with the Job build. To do this, open the Studio Job and republish the Job with the Items check box selected, then add the task to Job Conductor.

'studio_publish_job_you_must_select_items_checkbox.png'.png

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Eight Stars

Re: TAC - ESB Conductor : apply context to child

I have already done so.Selection_066.png

Could you please go to the following thread where I gave more details on this ?

https://community.talend.com/t5/Deployment/Cannot-create-an-execution-task-from-TAC/m-p/164699#M2948

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download