Python AppScheduler:BackgroundScheduler-Cron作业在第二次运行时未执行导出

Python AppScheduler:BackgroundScheduler-Cron作业在第二次运行时未执行导出,python,cron,scheduler,Python,Cron,Scheduler,正在使用Python AppScheduler:BackgroundScheduler查找cron作业 cron作业按要求的时间间隔执行 第一次运行的Cron作业成功执行下面的“import”语句。在第二次运行时,它将跳过导入语句 我试着用EXPECT块捕捉任何异常,但什么也没打印出来 我还检查了执行目录。每次运行时都会打印相同的路径 try: print ("Starting Phase 1 ") import run_data

正在使用Python AppScheduler:BackgroundScheduler查找cron作业

  • cron作业按要求的时间间隔执行
  • 第一次运行的Cron作业成功执行下面的“import”语句。在第二次运行时,它将跳过导入语句
  • 我试着用EXPECT块捕捉任何异常,但什么也没打印出来

    我还检查了执行目录。每次运行时都会打印相同的路径

         try:
             print ("Starting Phase 1 ")
             import run_data_analysis
             print ("End Phase 1 ")
         except:
             logging.exception('')