From 283249d2bd25f8b9e5399f9623e2df685a94622b Mon Sep 17 00:00:00 2001 From: Jona Date: Tue, 24 Oct 2023 23:27:30 -0400 Subject: [PATCH] Another bug with queuer --- cerulean_cloud/cloud_function_ais_analysis/queuer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cerulean_cloud/cloud_function_ais_analysis/queuer.py b/cerulean_cloud/cloud_function_ais_analysis/queuer.py index 1301aad0..b7a08d71 100644 --- a/cerulean_cloud/cloud_function_ais_analysis/queuer.py +++ b/cerulean_cloud/cloud_function_ais_analysis/queuer.py @@ -44,12 +44,12 @@ def add_to_aaa_queue(scene_id): "http_request": { # Specify the type of request. "http_method": tasks_v2.HttpMethod.POST, "url": url, # The url path that the task will be sent to. - }, - "headers": { - "Content-type": "application/json", - "Authorization": f"Bearer {os.getenv('API_KEY')}", - }, - "body": json.dumps(payload).encode(), + "headers": { + "Content-type": "application/json", + "Authorization": f"Bearer {os.getenv('API_KEY')}", + }, + "body": json.dumps(payload).encode(), + } } # Number of days that the Automatic AIS Analysis should be run after