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

ACME Reprovisioning #4522

Merged
merged 51 commits into from Feb 11, 2019
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
e3e159d
fix typo
hawkowl Jan 24, 2019
f6a7149
fix
hawkowl Jan 24, 2019
e148691
fix
hawkowl Jan 24, 2019
3ca24d5
fix
hawkowl Jan 24, 2019
8aa6d71
fix
hawkowl Jan 24, 2019
7ea34b0
fix
hawkowl Jan 24, 2019
70170e0
fix
hawkowl Jan 24, 2019
92e893e
fix
hawkowl Jan 24, 2019
f8c4258
fix
hawkowl Jan 24, 2019
9a66c51
fix
hawkowl Jan 24, 2019
7c99df8
fix
hawkowl Jan 24, 2019
0f0187e
fix
hawkowl Jan 24, 2019
4b9fd2b
fix
hawkowl Jan 24, 2019
e2615be
fix
hawkowl Jan 24, 2019
abc4e7d
fix
hawkowl Jan 24, 2019
666fc90
fix
hawkowl Jan 24, 2019
f6b58aa
fix
hawkowl Jan 24, 2019
26f4f5a
Merge remote-tracking branch 'origin/develop' into hawkowl/sighup-tls
hawkowl Jan 28, 2019
aaf9220
fix
hawkowl Jan 28, 2019
7df3114
changelog
hawkowl Jan 28, 2019
3fe07f7
fix
hawkowl Jan 29, 2019
2340ae5
fix
hawkowl Jan 29, 2019
08de6c9
fix
hawkowl Jan 29, 2019
cd78e7e
Merge remote-tracking branch 'origin/develop' into hawkowl/sighup-tls
hawkowl Jan 29, 2019
14e4c4f
fix
hawkowl Jan 29, 2019
d08ef7b
fix
hawkowl Jan 29, 2019
45f9d6c
reprovisioning code
hawkowl Jan 29, 2019
97eec0a
reprovisioning code
hawkowl Jan 30, 2019
edd51a1
Merge remote-tracking branch 'origin/develop' into hawkowl/acme-repro…
hawkowl Jan 30, 2019
62b4e01
pep8 fixes
hawkowl Jan 30, 2019
965921c
pep8 fixes
hawkowl Jan 30, 2019
d21f762
fixes
hawkowl Jan 30, 2019
67c30d3
Merge remote-tracking branch 'origin/develop' into hawkowl/acme-repro…
hawkowl Jan 30, 2019
14274eb
fixes
hawkowl Jan 30, 2019
12696ab
fixes
hawkowl Jan 30, 2019
fe36f24
fixes
hawkowl Jan 30, 2019
9c9d261
changelog
hawkowl Jan 30, 2019
e9e4c52
Merge remote-tracking branch 'origin/develop' into hawkowl/acme-repro…
hawkowl Jan 30, 2019
45810a4
Merge remote-tracking branch 'origin/develop' into hawkowl/acme-repro…
hawkowl Jan 30, 2019
512dfeb
fixes
hawkowl Jan 30, 2019
5fdaf5c
port over
hawkowl Feb 5, 2019
3fa83ab
changelog
hawkowl Feb 5, 2019
1779696
fix
hawkowl Feb 5, 2019
89fba92
some cleanup
hawkowl Feb 8, 2019
b232c17
some cleanup
hawkowl Feb 8, 2019
ffdac50
some cleanup
hawkowl Feb 8, 2019
54ea80c
Merge branch 'hawkowl/dedupe-start' into hawkowl/acme-reprovision
hawkowl Feb 8, 2019
759ceb8
Merge remote-tracking branch 'origin/develop' into hawkowl/acme-repro…
hawkowl Feb 8, 2019
fcb2fe1
Update _base.py
hawkowl Feb 8, 2019
565b3d2
some docs
hawkowl Feb 11, 2019
50046cc
fix changelog
richvdh Feb 11, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+5 −5
Diff settings

Always

Just for now

fix

  • Loading branch information...
hawkowl committed Jan 24, 2019
commit 0f0187e8cb8dcc2496bb85e07be20e5bbefce654
Copy path View file
@@ -201,7 +201,7 @@ def queue(self, key):
if entry[0] >= self.max_count:
res = self._await_lock(key)
else:
logger.info(
logger.debug(
"Acquired uncontended linearizer lock %r for key %r", self.name, key,
)
entry[0] += 1
@@ -215,7 +215,7 @@ def _ctx_manager(_):
try:
yield
finally:
logger.info("Releasing linearizer lock %r for key %r", self.name, key)
logger.debug("Releasing linearizer lock %r for key %r", self.name, key)

# We've finished executing so check if there are any things
# blocked waiting to execute and start one of them
@@ -247,15 +247,15 @@ def _await_lock(self, key):
"""
entry = self.key_to_defer[key]

logger.info(
logger.debug(
"Waiting to acquire linearizer lock %r for key %r", self.name, key,
)

new_defer = make_deferred_yieldable(defer.Deferred())
entry[1][new_defer] = 1

def cb(_r):
logger.info("Acquired linearizer lock %r for key %r", self.name, key)
logger.debug("Acquired linearizer lock %r for key %r", self.name, key)
entry[0] += 1

# if the code holding the lock completes synchronously, then it
@@ -273,7 +273,7 @@ def cb(_r):
def eb(e):
logger.info("defer %r got err %r", new_defer, e)
if isinstance(e, CancelledError):
logger.info(
logger.debug(
"Cancelling wait for linearizer lock %r for key %r",
self.name, key,
)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.