Skip to content

Commit 685f3eb

Browse files
Add env var for pno distribution test mode
1 parent 19de998 commit 685f3eb

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

datascience/config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
"y",
5151
)
5252

53+
# Must be set to true to send prior notifications to the FMC IT dept, and
54+
# not to real addressees (control units)
55+
PNO_TEST_MODE = os.getenv("PNO_TEST_MODE", "False").lower() in (
56+
"true",
57+
"t",
58+
"yes",
59+
"y",
60+
)
61+
5362
# Must be set to true to send beacon malfunction notifications to the FMC IT dept, and
5463
# not to real addressees (fishermen, shipowners and satellite operators)
5564
TEST_MODE = os.getenv("TEST_MODE", "False").lower() in (

datascience/src/pipeline/flows_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
MINIMUM_MINUTES_OF_EMISSION_AT_SEA,
1717
MONITORFISH_VERSION,
1818
NON_COMMITED_DATA_LOCATION,
19+
PNO_TEST_MODE,
1920
ROOT_DIRECTORY,
2021
TEST_MODE,
2122
)
@@ -79,7 +80,7 @@
7980
clocks.CronClock(
8081
"* * * * *",
8182
parameter_defaults={
82-
"test_mode": TEST_MODE,
83+
"test_mode": PNO_TEST_MODE,
8384
"is_integration": IS_INTEGRATION,
8485
"start_hours_ago": 120,
8586
"end_hours_ago": 0,

0 commit comments

Comments
 (0)