Exemplo n.º 1
0
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]')
Exemplo n.º 2
0
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上的执行任务到系统数据库]')
Exemplo n.º 3
0
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]')
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
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