Skip to content

Commit

Permalink
Merge pull request #20 from rohanpm/name-executors
Browse files Browse the repository at this point in the history
refactor: give executor a name
  • Loading branch information
rohanpm committed Jul 13, 2021
2 parents 4db1d58 + 44e4514 commit 5c03cb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- n/a
### Changed

- Executors are now named for improved metrics/debuggability.

## 1.0.2 - 2019-03-20

Expand Down
2 changes: 1 addition & 1 deletion fastpurge/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def __executor(self):
with self.__lock:
if self.___executor is None:
self.___executor = Executors.\
sync().\
sync(name="fastpurge").\
with_poll(self.__poll_purges).\
with_throttle(count=self.MAX_REQUESTS).\
with_retry().\
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests
more-executors>=1.19.1
more-executors>=2.7.0
six
monotonic
edgegrid-python

0 comments on commit 5c03cb6

Please sign in to comment.