Closed Weiming-Hu closed 4 years ago
This behavior is an unfortunate side effect of how the RE API is implemented: the attribute setters are actually hooked into function calls which set internal state which does not always (as in this case) represent the actual attribute types being set. We agree that this is confusing and has unexpected side effects.
Changing the api has significant intertia for us, so there is no quick solution forthcoming. We will (a) better document this behavior, and (b) take this in account when redesigning the API for later major release cycles.
Thanks for letting us know about the confusion, much appreciated!
As discussed with @lee212, we will open two tickets in EnTK repo to improve data staging documentation and starting a RFC for an API iteration.
Thank you very much. This is working in the devel branch of radical.entk.
Hi team, here is yet another confusion that I'm having. It might be a very simple one but I couldn't find much information on using the
shared_data
attribute of an app manager, although I'm aware of a quick tutorial here.The following code will walk you through reproducing the issue in an interactive python session.
Because I have two sets of files to include, one is the single shared file that is the same for all tasks and the other is a set of files that are specific to each task, I ended up doing this in my code.
While I don't think there is anything wrong with this, I just found this to be a little bit unexpected. I hope you can help me clear some confusion.
Much appreciated. Thank you