-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cleanup task not keeping releases correctly #1175
Comments
As mentioned in the PR #1176 my use case separates code deployment and release symlink into two separate commands because our
With this in mind the second command includes the new release in the release list while common deploys with one command will use the cache from a In my opinion this caching is causing unexpected behaviour ... what do you think ? |
I agree. I think we need to update releases list cache after new release and use your pr. |
What are your thoughts on defining if it's cachable on the This way there are things that never change during deployment that can be cached, e.g. binary locations etc while other closures can be set to run each time they are called by setting cacheable to false |
No, i think it will make stuff more complicated. I just was thinking about adding this to add('releases_list', $new_release); |
Ahh yeah that makes sense, I'm still learning the codebase so was unaware of that function 😄 , I'll update and reopen that PR with this change later today 👍 |
Fixed. |
Description
Example of the bug can be seen on https://3v4l.org/cXYMq
When you only want to keep 1 release it deletes it, whilst keeping more releases it seems to keep 1 less than required
The text was updated successfully, but these errors were encountered: