Skip to content

Commit

Permalink
Update __main__.py (#82)
Browse files Browse the repository at this point in the history
* Update __main__.py

Signed-off-by: Edoardo Rosa <[email protected]>

* fix

---------

Signed-off-by: Edoardo Rosa <[email protected]>
  • Loading branch information
notdodo authored Dec 9, 2024
1 parent d74d2e7 commit 8eb5290
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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

0 comments on commit 8eb5290

Please sign in to comment.