Skip to content

Commit 0d9e029

Browse files
authored
catch TimeoutError during claimWork (#451)
* catch timeouterror during claimwork * 33.1.1
1 parent da0f6e3 commit 0d9e029

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

HISTORY.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ Change Log
44
All notable changes to this project will be documented in this file.
55
This project adheres to `Semantic Versioning <http://semver.org/>`__.
66

7+
[33.1.1] - 2020-04-09
8+
---------------------
9+
10+
Fixed
11+
~~~~~
12+
- Catch ``asyncio.TimeoutError`` during ``claimWork``
13+
714
[33.1.0] - 2020-04-07
815
---------------------
916

src/scriptworker/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,5 +746,5 @@ async def claim_work(context):
746746
}
747747
try:
748748
return await context.queue.claimWork(context.config["provisioner_id"], context.config["worker_type"], payload)
749-
except (taskcluster.exceptions.TaskclusterFailure, aiohttp.ClientError) as exc:
749+
except (taskcluster.exceptions.TaskclusterFailure, aiohttp.ClientError, asyncio.TimeoutError) as exc:
750750
log.warning("{} {}".format(exc.__class__, exc))

src/scriptworker/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_version_string(version: Union[ShortVerType, LongVerType]) -> str:
5454

5555
# 1}}}
5656
# Semantic versioning 2.0.0 http://semver.org/
57-
__version__ = (33, 1, 0)
57+
__version__ = (33, 1, 1)
5858
__version_string__ = get_version_string(__version__)
5959

6060

version.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version":[
33
33,
44
1,
5-
0
5+
1
66
],
7-
"version_string":"33.1.0"
7+
"version_string":"33.1.1"
88
}

0 commit comments

Comments
 (0)