Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello... could someone help me to give an example how to change the value of
_maxBatchSize.value(the default value is 1000 and I want 20000). The documentation said like this, but I'm still confused how to implement it on LocalConfiguration.
My second question, how do I know that the iteration is the last batch iteration (iteration comes from
@ElementListener
) on
@AfterGroup
? Because I want to run my function after all the data is loaded. Thank you
Hi @Mohamad Irwan Afandi,
For the local-configuration.properties, you'll find some samples below:
- https://github.com/Talend/connectors-se/blob/master/marketo/src/main/resources/TALEND-INF/local-configuration.properties
- https://github.com/Talend/connectors-se/blob/master/salesforce/src/main/resources/TALEND-INF/local-configuration.properties
For you 2nd question, you cannot know it in @AfterGroup... for that you may use the @PreDestroy annotation (see
https://talend.github.io/component-runtime/main/1.33.0/component-execution.html) of
connectors' lifecycle. But be aware that implementing some actions like this in the @PreDestroy is not officially
supported (best effort) in Cloud environments and should only be used to release some acquired resources...
Best regards
Thank you @Emmanuel GALLOIS , this really helped me
You're welcome! 😉