Skip to content

Commit 99d3b8a

Browse files
authored
Merge pull request #138 from wri/hotfix/make_integrated_alerts_work
Increase integrated alerts job worker count and timeout
2 parents 41c481e + 5d2e59d commit 99d3b8a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN pip install . -t python
1515
# to change the hash of the file and get TF to realize it needs to be
1616
# redeployed. Ticket for a better solution:
1717
# https://gfw.atlassian.net/browse/GTC-1250
18-
# change 1
18+
# change 2
1919

2020
RUN yum install -y zip geos-devel
2121

src/datapump/jobs/geotrellis.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,10 @@ def _calculate_worker_count(self, limiting_src) -> int:
664664
665665
:return: number of workers appropriate for job size
666666
"""
667-
if (
668-
self.sync_type == SyncType.rw_areas
669-
or self.table.analysis == Analysis.integrated_alerts
670-
):
667+
if self.sync_type == SyncType.rw_areas:
671668
return 30
669+
elif self.table.analysis == Analysis.integrated_alerts:
670+
return 60
672671
elif self.change_only and self.table.analysis == Analysis.glad:
673672
return 10
674673

src/datapump/sync/sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ def build_jobs(self, config: DatapumpConfig) -> List[Job]:
251251
),
252252
features_1x1=config.metadata["features_1x1"],
253253
geotrellis_version=config.metadata["geotrellis_version"],
254+
timeout_sec=6 * 3600,
254255
)
255256
)
256257

0 commit comments

Comments
 (0)