"""
return self.data.get("test", False)
+ @property
+ def job_id(self):
+ return self.data.get("id")
+
@property
def ccache(self):
"""
"""
success = False
- # Extract the job id
- job_id = self.data.get("id")
- if not job_id:
+ # Check if we have received some useful data
+ if not self.job_id:
raise ValueError("Did not receive a job ID")
# Set the process title
- setproctitle.setproctitle("pakfire-worker job %s" % job_id)
+ setproctitle.setproctitle("pakfire-worker job %s" % self.job_id)
# Fetch the build architecture
arch = self.data.get("arch")
raise ValueError("Did not received a package URL")
# Connect to the hub
- self.job = await self.hub.job(job_id, worker=self)
+ self.job = await self.hub.job(self.job_id, worker=self)
# Setup build logger
logger = BuildLogger(self.log, self.job)
# Run the build
try:
build = self._build(pkg, arch=arch, target=target,
- logger=logger._log, build_id=job_id,
+ logger=logger._log, build_id=self.job_id,
# Always disable using snapshots
disable_snapshot=True,