bugfixing for cron jobs
This commit is contained in:
parent
15d725b865
commit
b1d75c52ab
@ -96,7 +96,7 @@ if __name__ == '__main__':
|
|||||||
contract_id_set.add(item['option_symbol']) # Add to the set
|
contract_id_set.add(item['option_symbol']) # Add to the set
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass # Handle missing 'option_symbol' keys gracefully
|
pass # Handle missing 'option_symbol' keys gracefully
|
||||||
except FileNotFoundError:
|
except:
|
||||||
pass # Handle missing files gracefully
|
pass # Handle missing files gracefully
|
||||||
|
|
||||||
# Convert the set to a list if needed
|
# Convert the set to a list if needed
|
||||||
|
|||||||
@ -340,8 +340,8 @@ def run_threaded(job_func):
|
|||||||
|
|
||||||
# Schedule the job to run
|
# Schedule the job to run
|
||||||
|
|
||||||
schedule.every().day.at("01:00").do(run_threaded, run_options_jobs).tag('options_job')
|
schedule.every().day.at("03: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("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_options_gex).tag('options_gex_job')
|
||||||
schedule.every().day.at("05:00").do(run_threaded, run_export_price).tag('export_price_job')
|
schedule.every().day.at("05:00").do(run_threaded, run_export_price).tag('export_price_job')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user