-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to re-cache a step after modifying it? #413
Comments
That might be a bug considering you did what it told you to do, and then you still got an error. @dirkgr is more familiar with the local workspace. That said, if you want to recache the step because you changed/fixed something with how the step runs, the best way to do that is to change/set the class MyStep(Step):
VERSION = "001" |
Thanks, setting the version number worked! |
Glad you got unblocked. Before you did the version number thing, did you remove the entire directory? Or did you just remove all files in it? |
I removed that directory |
@dirkgr any updates on this bug? Even though version numbers are great, sometimes I want to recache a step because of a change somewhere else in the code that affects that step (e.g rerunning on different random samples). For that purpose it would actually be helpful to be able to delete a step's cache and recompute that particular step as well as all the following steps that depend on it. |
+1 for this. I ran into a similar situation where the step in question was defined in a dependency of my project (catwalk) so I couldn’t tick the version. |
Still not a big fan, but maybe add an API to the workspace that allows you to delete a cache entry, and then expose it in the CLI? |
Why did you have to re-run it then? |
Also ran into a similar issue.
This would be useful. Removing the directory works in the case of local workspace, but for remote workspaces, not all of the information resides in the bucket. For instance, in GSWorkspace, step info information is in the datastore, which allows for better speeds, but also means that removing a run/step requires us to delete the bucket entry as well as the datastore entry. |
What is the recommended way to recache a step?
I tried deleting the cached file and re-running as recommended by the error message, but I keep getting the following error:
The text was updated successfully, but these errors were encountered: