reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julia Wang (QIUHE)" <Qiuhe.W...@microsoft.com.INVALID>
Subject RE: Question about taskIds
Date Thu, 27 Jul 2017 00:37:26 GMT
I guess you are talking about to get task id inside task. 

Both UpdateTaskHost and MapTaskHost constructor have tasked injected. So they are able to
access task id. But task id is not passed to map/update functions.

In map function and update function, if user wants, they can inject task id in the constructor:
[Parameter(typeof(TaskConfigurationOptions.Identifier))] string taskId

You will then able to access it inside the constructor. Here user means map/update function
writer.

Julia

-----Original Message-----
From: Julia Wang (QIUHE) [mailto:Qiuhe.Wang@microsoft.com.INVALID] 
Sent: Wednesday, July 26, 2017 5:27 PM
To: dev@reef.apache.org
Subject: RE: Question about taskIds

Do you mean specify task id at user end in the driver? 

-----Original Message-----
From: Rogan Carr [mailto:rogan.carr@gmail.com] 
Sent: Wednesday, July 26, 2017 5:25 PM
To: dev@reef.apache.org
Subject: Question about taskIds

Hi All,

Is there any way for a task to determine it's own ID? I've been digging through the code and
I haven't seen any examples of this. I can always inject in in the constructor, but I wanted
to see if I could get it for free.

Thanks!

Best,
Rogan
Mime
View raw message