зеркало из https://github.com/mozilla/docker-etl.git
record the collection time to match when the aggregations are being queried for (#216)
This commit is contained in:
Родитель
4fb2fdbc88
Коммит
96eff62047
|
@ -101,7 +101,7 @@ async def collect_once(task, timestamp, duration, hpke_private_key, auth_token):
|
|||
res["reports"].append(rpt)
|
||||
return res
|
||||
|
||||
print(f"{collection_time} Result: code {proc.returncode}")
|
||||
print(f"{timestamp} Result: code {proc.returncode}")
|
||||
rpt["collection_duration"] = time.perf_counter() - start_counter
|
||||
|
||||
# Parse the output of the collect binary
|
||||
|
@ -126,7 +126,7 @@ async def collect_once(task, timestamp, duration, hpke_private_key, auth_token):
|
|||
print(task["task_id"], i, ad)
|
||||
if ad is not None:
|
||||
cnt = {}
|
||||
cnt["collection_time"] = collection_time
|
||||
cnt["collection_time"] = timestamp
|
||||
cnt["placement_id"] = ad["advertiserInfo"]["placementId"]
|
||||
cnt["advertiser_id"] = ad["advertiserInfo"]["advertiserId"]
|
||||
cnt["advertiser_name"] = ad["advertiserInfo"]["advertiserName"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче