MetaServletCaller: How to set context environment name and log4j level parameters with associatePreGeneratedJob command

Talend Version 6.2.1 and above

Summary

MetaServletCaller associatePreGeneratedJob command does not set context and log4j level.
Additional Versions  
Key words MetaServletCaller; associatePreGeneratedJob; contextName logLevel
Product  
Component  
Article Type  
Problem Description How to specify context environment name and log4j level when creating a task with the MetaServletCaller associatePreGeneratedJob command.
Problem root cause  
Solution or Workaround

Add contextName and logLevel elements to the JSON string of the MetaServletCaller associatePreGeneratedJob command:

 

"contextName":"Dev","logLevel"="Debug"

 

As a workaround for versions prior to 6.2.1, after you create the task, run the following SQL query on the TAC database to update both context and log4j level:

UPDATE executiontask SET context='Dev', log4jlevel='Debug' where label='yourTaskName'
JIRA ticket number  
Version history
Revision #:
6 of 6
Last update:
‎09-29-2018 12:10 AM
Updated by: