def execute_cleanup_tasks(ctx, cleanup_tasks, dry_run=False):
 executor = Executor(cleanup_tasks, ctx.config)
 for cleanup_task in cleanup_tasks.tasks:
  print ('CLEANUP TASK: %s' % cleanup_task)
  executor.execute((cleanup_task, dict(dry_run=dry_run)))

def execute_cleanup_tasks ( ctx , cleanup_tasks , dry_run = False ) : executor = Executor ( cleanup_tasks , ctx . config ) for cleanup_task in cleanup_tasks . tasks : print ( 'CLEANUP TASK: %s' % cleanup_task ) executor . execute ( ( cleanup_task , dict ( dry_run = dry_run ) ) )
execute several cleanup tasks as part of the cleanup .