Skip to content

Enable deletion of individual cache files

Compare
Choose a tag to compare
@deanishe deanishe released this 16 Jun 19:38
· 496 commits to master since this release

By passing None as the data argument to Workflow.cache_data(), you can force the deletion of the corresponding cache file:

from workflow import Workflow
wf = Workflow()
wf.cache_data('test', None)

will delete the cache file for name/key test.

This may be useful in forcing your workflow to update its cache data.