-
Notifications
You must be signed in to change notification settings - Fork 27
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 basic retry functionality #1119
base: master
Are you sure you want to change the base?
Changes from all commits
3f030e3
25c0c16
62dc92c
94926ad
d399654
cce0b17
5507e88
6b4e587
2a44d5d
255edf8
4cf466e
5611cf4
ad8340a
2671587
f455022
b090162
f7dc789
a806be0
616672d
ac27292
7701e75
732de6c
45af78a
aeb3ac6
83bd438
b619482
1c98b31
999ed6e
2e97fe8
18b5d6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,5 @@ docker/prometheus-data | |
.DS_Store | ||
nim.cfg | ||
tests/integration/logs | ||
|
||
data/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,8 +143,6 @@ proc start*(b: DiscoveryEngine) {.async.} = | |
asyncSpawn fut | ||
|
||
b.discoveryLoop = b.discoveryQueueLoop() | ||
b.trackedFutures.track(b.discoveryLoop) | ||
asyncSpawn b.discoveryLoop | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm... why are you excluding this? This will cause the discovery loop not to stop when someone calls There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, not really - this doesn't affect stopping since we call cancel the tracked futures on stop. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait but you're not adding the discoveryLoop future to the trackedFutures, so that one won't stop. |
||
|
||
proc stop*(b: DiscoveryEngine) {.async.} = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since you are changing |
||
## Stop the discovery engine | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ehehe good easter egg... 😃