1
0
Fork 0
 
 
 
Go to file
Dustin bdcb8c93b6
dustin/xactfetch/pipeline/head This commit looks good Details
xactfetch: Suppress asyncio InvalidStateError
There is currently a [bug][0] in the Python Playwright API that causes
_asyncio_ to raise an `InvalidStateError` occasionally when the
`PlaywrightContextManager` exits.  This causes the program to exit
with a nonzero return code, even though it actually completed
successfully, which will cause the Job to be retried.  To avoid this,
we can catch and ignore the spurious exception.

I've reorganized the code a bit here because we have to wrap the whole
`with` block in the `try`/`except`; moving the contents of the block
into a function keeps the indentation level from getting out of control.

[0]: https://github.com/microsoft/playwright-python/issues/2238
2024-07-11 22:34:49 -05:00
ci ci: Add Jenkins pipeline 2024-05-17 10:14:57 -05:00
.containerignore container: Add secretsocket, chase2fa scripts 2024-07-11 21:50:27 -05:00
.gitignore secretsocket: Handle secrets via external process 2024-07-10 14:54:23 -05:00
Containerfile container: Add secretsocket, chase2fa scripts 2024-07-11 21:50:27 -05:00
chase2fa.py container: Add secretsocket, chase2fa scripts 2024-07-11 21:50:27 -05:00
entrypoint.sh container: Add secretsocket, chase2fa scripts 2024-07-11 21:50:27 -05:00
pinentry-stub.sh Remove unlock ntfy message 2023-12-12 08:09:40 -06:00
pyproject.toml Switch to async API 2024-07-10 14:54:23 -05:00
secretsocket.py container: Add secretsocket, chase2fa scripts 2024-07-11 21:50:27 -05:00
xactfetch.container Make URLs, etc. configurable 2023-12-12 08:09:41 -06:00
xactfetch.py xactfetch: Suppress asyncio InvalidStateError 2024-07-11 22:34:49 -05:00
xactfetch.timer Add example systemd units 2023-12-12 08:09:41 -06:00