def sync_job_execution_status_job(): ''' sync job execution running status :return: ''' for project in Project.query.all(): agent.sync_job_status(project) app.logger.debug('[sync_job_execution_status]')
def sync_job_execution_status_job(): """ sync job execution running status, :return: """ for project in Project.query.all(): agent.sync_job_status(project) app.logger.debug('[同步scrapyd上的执行任务到系统数据库]')
def sync_job_execution_status_job(): ''' sync job execution running status :return: ''' for project in Project.query.all(): app.logger.info('[sync_job_execution_status][project:%s]' % project.id) agent.sync_job_status(project)
def sync_job_execution_status_job(): ''' sync job execution running status :return: ''' for i in range(3): try: for project in Project.query.all(): agent.sync_job_status(project) app.logger.debug('[sync_job_execution_status]') break except: continue