From 21b6957dc00459af017b3073d2c4b13875c3fb89 Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Sun, 4 Feb 2024 23:08:53 -0500 Subject: [PATCH] Update to cronberry 3.1.1 --- scripts/requirements.txt | 2 +- scripts/schedule_cache.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/requirements.txt b/scripts/requirements.txt index d1afe78..005f0b7 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2024 Alec Delaney # SPDX-License-Identifier: MIT -cronberry~=2.1 # This is installed via pipx +cronberry~=3.1 # This is installed via pipx diff --git a/scripts/schedule_cache.sh b/scripts/schedule_cache.sh index b52cf63..b6e59e5 100644 --- a/scripts/schedule_cache.sh +++ b/scripts/schedule_cache.sh @@ -4,15 +4,15 @@ REPOPATH=$(realpath .) -PYTHONBIN="$REPOPATH/.venv/bin/python" +PYBINPATH="$REPOPATH/.venv/bin" UPDATESCRIPTPATH="$REPOPATH/scripts/graphql.py" -UPDATECOMMAND="55 * * * * $PYTHONBIN $UPDATESCRIPTPATH $REPOPATH" +UPDATECOMMAND="55 * * * * python $UPDATESCRIPTPATH $REPOPATH" UPDATEJOBNAME=$(echo "$REPOPATH" | xargs basename) DELETESCRIPTPATH="$REPOPATH/scripts/post_graphql.py" -DELETECOMMAND="5 * * * * $PYTHONBIN $DELETESCRIPTPATH $REPOPATH" +DELETECOMMAND="5 * * * * python $DELETESCRIPTPATH $REPOPATH" DELETEJOBNAME=$(echo "$REPOPATH" | xargs basename) -cronberry enter "Cache new cards for $UPDATEJOBNAME" "$UPDATECOMMAND" --overwrite -cronberry enter "Delete old cards for $DELETEJOBNAME" "$DELETECOMMAND" --overwrite +cronberry enter "Cache new cards for $UPDATEJOBNAME" "$UPDATECOMMAND" --path "$PYBINPATH" --overwrite +cronberry enter "Delete old cards for $DELETEJOBNAME" "$DELETECOMMAND" --path "$PYBINPATH" --overwrite