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

Add retries option #43

Merged
merged 2 commits into from
Nov 23, 2021
Merged

Add retries option #43

merged 2 commits into from
Nov 23, 2021

Conversation

julienduchesne
Copy link
Contributor

It uses the PLUGIN_VAR format in order to allow enabling it this way:

clone:
  retries: 3

Updated from #27

It can be enabled this way:
```
clone:
  retries: 3
```
@tphoney
Copy link
Contributor

tphoney commented Nov 16, 2021

Hi @julienduchesne this seems sensible, how where you going to pass the env var in from the runners ?

@julienduchesne
Copy link
Contributor Author

Hi @julienduchesne this seems sensible, how where you going to pass the env var in from the runners ?

I'd like to add a retries attribute in the clone structure if possible. And pass it like this: https://github.com/drone-runners/drone-runner-docker/blob/d926749258923b7ecba054d76e51ad9b2cd6e434/engine/compiler/clone.go#L32-L42

Currently, we are using this as a custom clone step

@tphoney tphoney merged commit 8070857 into drone:master Nov 23, 2021
julienduchesne added a commit to julienduchesne/runner-go that referenced this pull request Nov 23, 2021
julienduchesne added a commit to grafana/drone-runner-docker that referenced this pull request Nov 23, 2021
Used to support drone/drone-git#43
Will require a go mod update to add the arg to the manifest: drone/runner-go#22
@julienduchesne
Copy link
Contributor Author

Thanks for the merge @tphoney. I also created these two PRs to expose the option:

tphoney pushed a commit to drone-runners/drone-runner-docker that referenced this pull request Jun 9, 2022
* Add retries option to the clone step
Used to support drone/drone-git#43
Will require a go mod update to add the arg to the manifest: drone/runner-go#22

* Update `runner-go` to v1.12.0

* Add test
julienduchesne added a commit to julienduchesne/docs-1 that referenced this pull request Aug 2, 2022
@sdarwin
Copy link

sdarwin commented Sep 17, 2022

@julienduchesne what's the delay between retries? should sleep for 5 or 10 seconds right? Otherwise, all retries happen very quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants