Skip to content
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

[FEATURE REQUEST] Skip command if cache hit found #51

Open
Tracked by #52
irphilli opened this issue Aug 8, 2022 · 0 comments
Open
Tracked by #52

[FEATURE REQUEST] Skip command if cache hit found #51

irphilli opened this issue Aug 8, 2022 · 0 comments

Comments

@irphilli
Copy link
Contributor

irphilli commented Aug 8, 2022

In the case for a command that is responsible for populating the cache, it would be helpful to go ahead and skip the command on a non-restore key cache hit. This can help optimize a flow if the command populating the cache takes some time (i.e. in a docker container, where the pull/startup takes time)

Something like:

steps:
  - label: Populate Cache
    command: ./populate_cache.sh
    plugins:
      - gencer/cache#v2.4.11:
        ...
        skip_command_on_cache_hit: true
@gencer gencer mentioned this issue Aug 29, 2022
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant