DeterminateSystems / magic-nix-cache-action

Save 30-50%+ of CI time without any effort or cost. Use Magic Nix Cache, a totally free and zero-configuration binary cache for Nix on GitHub Actions.
MIT License
389 stars 15 forks source link

Option to halt progress when rate limited #76

Open FRidh opened 3 months ago

FRidh commented 3 months ago

When rate-limited Nix continues building from source instead, as described also in https://github.com/DeterminateSystems/magic-nix-cache-action?tab=readme-ov-file#usage-notes. Is it feasible to halt when this occurs, and then continue after 60 seconds? In this case building from source takes far more time than having to wait once (or more).

Related to https://github.com/DeterminateSystems/magic-nix-cache-action/issues/29

dbarrosop commented 2 months ago

Yes, current behaviour is a bit unfortunate, specially as it "hards disable" the store which means you can't attempt to copy results that may not be cached automatically (like the check derivation).