Skip to content

Commit 7fb7217

Browse files
authored
Merge pull request #511 from escapewindow/tc-40plus
Fix claimWork in scriptworker + tc>39
2 parents a76a2fe + 659cef8 commit 7fb7217

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ immutabledict>=1.3.0
88
jsonschema
99
json-e>=2.5.0
1010
PyYAML
11-
taskcluster
11+
taskcluster>39

src/scriptworker/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import os
1313
import re
1414
import sys
15-
from collections import Mapping
15+
from collections.abc import Mapping
1616
from copy import deepcopy
1717

1818
from immutabledict import immutabledict

src/scriptworker/task.py

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

0 commit comments

Comments
 (0)