Skip to content

Commit

Permalink
Merge pull request #449 from wri/retry_load_data_jobs
Browse files Browse the repository at this point in the history
Retry GdalPythonImportJobs (because it's now safe)
  • Loading branch information
dmannarino authored Dec 14, 2023
2 parents 8b869f6 + 83358d5 commit 12bb4f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/pydantic/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 12bb4f3

Please sign in to comment.