Skip to content

Commit

Permalink
Only increase amount for geostore GLAD
Browse files Browse the repository at this point in the history
  • Loading branch information
jterry64 authored Feb 25, 2025
1 parent 7679a84 commit aef793b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/datapump/jobs/geotrellis.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,19 +697,22 @@ def _calculate_worker_count(self, limiting_src) -> int:
return 30
elif self.table.analysis == Analysis.integrated_alerts:
return 60
elif self.change_only and self.table.analysis == Analysis.glad:
return 30

# if using a wildcard for a folder, just use hardcoded value
if "*" in limiting_src:
if GLOBALS.env == "production":
if self.table.analysis == Analysis.tcl or self.table.analysis == Analysis.viirs:
return 200
elif self.change_only and self.table.analysis == Analysis.glad:
return 30
else:
return 100
else:
return 50

if self.change_only and self.table.analysis == Analysis.glad:
return 10

byte_size = self._get_byte_size(limiting_src)

analysis_weight = 1.0
Expand Down

0 comments on commit aef793b

Please sign in to comment.