bugfixing for cron jobs

This commit is contained in:
MuslemRahimi 2025-01-07 10:54:26 +01:00
parent 15d725b865
commit b1d75c52ab
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ if __name__ == '__main__':
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

View File

@ -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')