Skip to content

Commit

Permalink
bugfixing for cron jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jan 7, 2025
1 parent 15d725b commit b1d75c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/cron_options_single_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_single_contract_historical_data(contract_id):
contract_id_set.add(item['option_symbol']) # Add to the set
except KeyError:
pass # Handle missing 'option_symbol' keys gracefully
except FileNotFoundError:
except:
pass # Handle missing files gracefully

# Convert the set to a list if needed
Expand Down
4 changes: 2 additions & 2 deletions app/primary_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ def run_threaded(job_func):

# Schedule the job to run

schedule.every().day.at("01:00").do(run_threaded, run_options_jobs).tag('options_job')
schedule.every().day.at("02:00").do(run_threaded, run_db_schedule_job)
schedule.every().day.at("03:00").do(run_threaded, run_options_jobs).tag('options_job')
schedule.every().day.at("01:00").do(run_threaded, run_db_schedule_job)
#schedule.every().day.at("05:00").do(run_threaded, run_options_gex).tag('options_gex_job')
schedule.every().day.at("05:00").do(run_threaded, run_export_price).tag('export_price_job')

Expand Down

0 comments on commit b1d75c5

Please sign in to comment.