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
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; 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'):
files=ItemValue("all_target_files"), extra_args = [ '--partial', '--partial-dir', '.rsync-tmp' ] ) ), StopHeartbeat(), MarkItemAsDone(control, EXPIRE_TIME) ) def stop_control(): control.unregister_pipeline(pipeline_id).get() control_ref.stop() pipeline.on_cleanup += stop_control # Activate system monitoring. monitoring.start(pipeline, control, VERSION) 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