From 83358d5a8bd6c5060ce8fd320b16002deb6cf845 Mon Sep 17 00:00:00 2001 From: Daniel Mannarino Date: Tue, 12 Dec 2023 14:06:37 -0500 Subject: [PATCH] Retry GdalPythonImportJobs --- app/models/pydantic/jobs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/pydantic/jobs.py b/app/models/pydantic/jobs.py index 1e883e92d..d3f3ab0ab 100644 --- a/app/models/pydantic/jobs.py +++ b/app/models/pydantic/jobs.py @@ -87,14 +87,14 @@ class PostgresqlClientJob(Job): class GdalPythonImportJob(Job): - """Use for write operations to PostgreSQL which require GDAL/ Ogr2Ogr - drivers.""" + """Use for write operations to PostgreSQL which require GDAL/Ogr2Ogr + drivers. NOTE: JOB MUST BE SAFE TO RETRY!""" job_queue = AURORA_JOB_QUEUE job_definition = GDAL_PYTHON_JOB_DEFINITION vcpus = 1 memory = 2500 - attempts = 1 + attempts = 10 attempt_duration_seconds = DEFAULT_JOB_DURATION