Bug 1252725 - artifacts tasks should be reclaimed to avoid timeouts r=jlund a=testing DONTBUILD

This commit is contained in:
Rail Aliiev 2016-03-02 19:50:30 -05:00
parent 7f5cea8d5e
commit a8b099d552

View File

@ -116,6 +116,9 @@ class Taskcluster(LogMixin):
mime_type = self.get_mime_type(os.path.splitext(filename)[1]) mime_type = self.get_mime_type(os.path.splitext(filename)[1])
self.info("Create reference artifact: filename=%s mimetype=%s url=%s" % self.info("Create reference artifact: filename=%s mimetype=%s url=%s" %
(filename, mime_type, url)) (filename, mime_type, url))
# reclaim the task to avoid "claim-expired" errors
self.taskcluster_queue.reclaimTask(
task['status']['taskId'], task['status']['runs'][-1]['runId'])
self.taskcluster_queue.createArtifact( self.taskcluster_queue.createArtifact(
task['status']['taskId'], task['status']['taskId'],
task['status']['runs'][-1]['runId'], task['status']['runs'][-1]['runId'],