Skip to content

Commit

Permalink
Make filename stable across deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Dec 24, 2024
1 parent 680fe0e commit 329bee5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions stack/cloud_function_ais_analysis.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""cloud function to find slick culprits from AIS tracks"""

import time

import database
import git
import pulumi
Expand Down Expand Up @@ -58,7 +56,7 @@
# source code. ("main.py" and "requirements.txt".)
source_archive_object = storage.BucketObject(
construct_name("source-cf-ais"),
name=f"handler.py-{time.time():f}",
name="handler.py",
bucket=bucket.name,
source=archive,
)
Expand Down
4 changes: 1 addition & 3 deletions stack/cloud_function_historical_run.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""cloud function to select appropriate scenes (over water and IW) from SNS notification"""

import time

import cloud_function_scene_relevancy
import cloud_run_orchestrator
import database
Expand Down Expand Up @@ -37,7 +35,7 @@
# source code. ("main.py" and "requirements.txt".)
source_archive_object = storage.BucketObject(
construct_name("source-cf-historical-run"),
name=f"handler.py-{time.time():f}",
name="handler.py",
bucket=cloud_function_scene_relevancy.bucket.name,
source=archive,
)
Expand Down
4 changes: 1 addition & 3 deletions stack/cloud_function_scene_relevancy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""cloud function to select appropriate scenes (over water and IW) from SNS notification"""

import time

import cloud_run_orchestrator
import database
import pulumi
Expand Down Expand Up @@ -60,7 +58,7 @@
# source code. ("main.py" and "requirements.txt".)
source_archive_object = storage.BucketObject(
construct_name("source-cf-sr"),
name=f"handler.py-{time.time():f}",
name="handler.py",
bucket=bucket.name,
source=archive,
)
Expand Down

0 comments on commit 329bee5

Please sign in to comment.