What is the difference between normal task (Nexus) and an artifact task?

There are several differences between the Nexus artifact as a normal task and as an artifact task. Some of these differences are:

 

  1. When you select an artifact task, the Job has a reference to Nexus. For example, you select the latest version of say, 0.3, of the Job in Version while adding a task. Then you change the Job in Studio and publish it with a new version of say, 0.4. The artifact task downloads the latest version, that is 0.4, before running it in the JobServer, since it has a reference to the Nexus. However, a similar Job selected through normal task (Nexus), still uses 0.3, because it doesn't have a reference to Nexus.

     

  2. The context in the artifact task is taken from what you select while publishing the Job from Studio.

    Screenshot (48).png

     

  3. You don't have an option to change the context of an Artifact Task.

    Screenshot (49).png

     

  4. You can change the context variable of a Normal Task (Nexus).

    Screenshot (50).png

Version history
Revision #:
5 of 5
Last update:
‎02-27-2019 09:21 PM
Updated by:
 
Contributors
Comments
Five Stars

is point 1 and 3 correct ?

Could someone please verify.

I believe both the points are not correct.

Moderator

Hello @krrohit1256 

What's the error message are you getting when you use point 1 and point 3?

Best regards

Sabrina

Five Stars

Hi,

Point 1 says - 

         "Then you change the Job in Studio and publish it with a new version of say, 0.4. The artifact task downloads the latest version, that is 0.4, before running it in the JobServer, since it has a reference to the Nexus"

Does it mean that even if we do not change the version of the artifact task from 0.3 to 0.4 in TAC, still when the job runs it will run with the latest version that is .4 ?

 

Point 3 says -

   We cannot change the context of the artifact task. But i believe it can be changed.

 

Thanks,

Rohit

Employee

Hi @xdshi, thank you for looking into it.

 

@krrohit1256, Addressing your query:

1) Does it mean that even if we do not change the version of the artifact task from 0.3 to 0.4 in TAC, still when the job runs it will run with the latest version that is .4 ?

Not unless you have a new version build and published to the nexus artifact.

2) We cannot change the context of the artifact task. But i believe it can be changed.

We have a Feature Request: https://jira.talendforge.org/browse/TAC-122(Internal), for it to be implemented for artifact task, as of now it's not possible, and context used to publish to TAC would be the one used in Artifact Task.