zhimin-z commited on
Commit
9f10112
·
1 Parent(s): 863c3c0
Files changed (1) hide show
  1. msr.py +2 -11
msr.py CHANGED
@@ -1174,18 +1174,9 @@ def setup_scheduler():
1174
  print(f"Scheduler: Monthly on day {SCHEDULE_DAY_OF_MONTH} at {SCHEDULE_HOUR:02d}:{SCHEDULE_MINUTE:02d} {SCHEDULE_TIMEZONE}")
1175
  print(f"Next run: {next_run}\n")
1176
 
1177
- # Run immediately on startup
1178
- print("Running initial mining job...")
1179
- mine_all_agents()
1180
-
1181
  # Start scheduler (blocking call)
1182
- print(f"\nScheduler started (Press Ctrl+C to exit)")
1183
-
1184
- try:
1185
- scheduler.start()
1186
- except (KeyboardInterrupt, SystemExit):
1187
- print("\nScheduler stopped by user")
1188
- scheduler.shutdown()
1189
 
1190
 
1191
  # =============================================================================
 
1174
  print(f"Scheduler: Monthly on day {SCHEDULE_DAY_OF_MONTH} at {SCHEDULE_HOUR:02d}:{SCHEDULE_MINUTE:02d} {SCHEDULE_TIMEZONE}")
1175
  print(f"Next run: {next_run}\n")
1176
 
 
 
 
 
1177
  # Start scheduler (blocking call)
1178
+ print(f"\nScheduler started")
1179
+ scheduler.start()
 
 
 
 
 
1180
 
1181
 
1182
  # =============================================================================