From 9175b56cd8c6bdfa4baed68b760eca2713814e93 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Fri, 13 Dec 2024 15:38:32 -0700 Subject: [PATCH] Updated timing and default constants --- .github/workflows/daily_run_simple_bot.yaml | 4 ++-- main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/daily_run_simple_bot.yaml b/.github/workflows/daily_run_simple_bot.yaml index ed4970d..5e2e78b 100644 --- a/.github/workflows/daily_run_simple_bot.yaml +++ b/.github/workflows/daily_run_simple_bot.yaml @@ -3,7 +3,7 @@ name: Regularly forecast new questions on: workflow_dispatch: schedule: - - cron: "*/1 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions! + - cron: "*/15 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions! # Daily job to run the simple forecast bot jobs: @@ -24,7 +24,7 @@ jobs: installer-parallel: true - name: Load cached venv id: cached-poetry-dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .venv key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} diff --git a/main.py b/main.py index e82705d..ed61c1c 100755 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ # Constants SUBMIT_PREDICTION = True # set to True to publish your predictions to Metaculus -USE_EXAMPLE_QUESTIONS = True # set to True to forecast example questions +USE_EXAMPLE_QUESTIONS = False # set to True to forecast example questions NUM_RUNS_PER_QUESTION = 5 # The median is taken between NUM_RUNS_PER_QUESTION runs SKIP_PREVIOUSLY_FORECASTED_QUESTIONS = True GET_NEWS = True # set to True to enable AskNews after entering ASKNEWS secrets