Cache mechanism per-workitem

   2010   5   1
User Avatar
Member
209 posts
Joined: Nov. 2010
Offline
Hi,

Is there any PDG python API to force workitem to use “Write Files” mode for the caching mechanism?
workitem.dirty(delete, remove_outputs)
Doesn't really work in our case because of some deletion restriction

Thanks
Ostap
User Avatar
Member
159 posts
Joined: Feb. 2018
Offline
set pdg_cachemode to “Write File”
User Avatar
Member
209 posts
Joined: Nov. 2010
Offline
EricSheng
set pdg_cachemode to “Write File”

Maybe SideFX has a more elegant way?
User Avatar
Member
159 posts
Joined: Feb. 2018
Offline
Ostap
EricSheng
set pdg_cachemode to “Write File”

Maybe SideFX has a more elegant way?
delete the cache file manually or with script. PDG node will check the cache file before onPrepareTask(work_item)
User Avatar
Member
209 posts
Joined: Nov. 2010
Offline
delete the cache file manually or with script. PDG node will check the cache file before onPrepareTask(work_item)

That looks like some workaround solution. Especially from the view of just triggering workitem state (Read/Write). I would be surprised that we don't have API control under UI functionality.
User Avatar
Staff
586 posts
Joined: May 2014
Offline
I've just written a detailed response on this topic on a different thread: https://www.sidefx.com/forum/topic/72997/ [www.sidefx.com]

In summary – we're working on some improvements to the caching mechanism, which includes making it more configurable. Those changes will be available in the next few days.
Edited by tpetrick - April 12, 2020 20:29:30
  • Quick Links