Exemple #1
0
    pipeline.running_status = "Running"


pipeline.on_stop_canceled += status_running


def status_stopping():
    pipeline.running_status = "Stopping"


pipeline.on_stop_requested += status_stopping

# Activate system monitoring.
monitoring.start(pipeline, control, VERSION, downloader)

check_wpull_args(wpull_args)

print('*' * 60)
print('Pipeline ID: %s' % pipeline_id)

if env.get('AO_ONLY'):
    print('!ao-only mode enabled; pipeline will accept jobs queued with !ao '
          '(and not jobs queued with !a or --pipeline)')

elif env.get('LARGE'):
    print('large mode enabled; pipeline will accept jobs queued with !a'
          ' --large')

elif env.get('LARGE') and env.get('AO_ONLY'):
    print('!ao-only and large modes enabled.  THIS IS PROBABLY A MISTAKE. '
          ' Pipeline will accept only jobs queued with --large or !ao.')
Exemple #2
0
pipeline.on_cleanup += stop_control

pipeline.running_status = "Running"

def status_running():
    pipeline.running_status = "Running"

pipeline.on_stop_canceled += status_running

def status_stopping():
    pipeline.running_status = "Stopping"

pipeline.on_stop_requested += status_stopping

# Activate system monitoring.
monitoring.start(pipeline, control, VERSION, downloader)

check_wpull_args(wpull_args)

print('*' * 60)
print('Pipeline ID: %s' % pipeline_id)

if env.get('AO_ONLY'):
    print('!ao-only mode enabled')

print('*' * 60)
print()

# vim:ts=4:sw=4:et:tw=78