Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update __main__.py #82

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pulumi-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ jobs:
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a
# v4.1.2
with:
path: ${{ env.POETRY_PATH }}/.venv
path: |
${{ env.POETRY_PATH }}/.venv
${{ env.POETRY_PATH }}/.mypy_cache
key: python-3.12-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
python-3.12-poetry
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pulumi-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a
# v4.1.2
with:
path: ${{ env.POETRY_PATH }}/.venv
path: |
${{ env.POETRY_PATH }}/.venv
${{ env.POETRY_PATH }}/.mypy_cache
key: python-3.12-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
python-3.12-poetry
Expand Down
4 changes: 2 additions & 2 deletions pulumi/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
SYNC_MINUTES_RATE_NORMAL = 24 * 60 # Once a day
SYNC_MINUTES_RATE_MEDIUM = 2 * 60 # Every two hours
SYNC_MINUTES_RATE_EMERGENCY = 20
EMERGENCY = True
EMERGENCY = False
CUSTOM_DOMAIN_NAME = "erfiume.thedodo.xyz"

stazioni_table = dynamodb.Table(
Expand Down Expand Up @@ -181,7 +181,7 @@
mode="FLEXIBLE",
maximum_window_in_minutes=5,
),
schedule_expression=f"rate({SYNC_MINUTES_RATE_EMERGENCY if EMERGENCY else SYNC_MINUTES_RATE_NORMAL} minutes)",
schedule_expression=f"rate({SYNC_MINUTES_RATE_EMERGENCY if EMERGENCY else SYNC_MINUTES_RATE_MEDIUM} minutes)",
schedule_expression_timezone="Europe/Rome",
target=scheduler.ScheduleTargetArgs(
arn=fetcher_lambda.arn,
Expand Down
Loading