'description': ctx.description,
'owner': ctx.owner,
'pid': os.getpid(),
- 'job_id': ctx.config['job_id'],
}
+ if 'job_id' in ctx.config:
+ info['job_id'] = ctx.config['job_id']
+
with file(os.path.join(ctx.archive, 'info.yaml'), 'w') as f:
yaml.safe_dump(info, f, default_flow_style=False)
'task': taskname,
'owner': ctx.owner,
}
+ job_id = getattr(ctx, 'job_id', None)
extra = {
- 'logs': get_http_log_path(ctx.archive, ctx.job_id),
+ 'logs': get_http_log_path(ctx.archive, job_id),
}
exc_id = sentry.captureException(
tags=tags,