示例#1
0
def task_run(ctx, task_name, wait):
    """
    Run the specified task, and if wait is true, wait for the task to finish and display
    any logs.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    task.run(wait)
示例#2
0
def task_run(ctx, task_name, wait):
    """
    Run the specified task, and if wait is true, wait for the task to finish and display
    any logs.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    try:
        task.run(wait)
    except:
        click.echo("There was an unspecified error running this task.")
示例#3
0
def task_update(ctx, task_name):
    """
    Update the task definition for the specified task.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    try:
        task.update()
    except Exception as e:
        click.echo('Task update failed: {}'.format(str(e)))
    else:
        click.echo("Task updated.")
示例#4
0
def task_write_config(ctx, task_name, dry_run):
    """
    If the task TASK_NAME has a "config:" section defined, write
    all of the parameters for the task to AWS Parameter Store.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    _write_config(task, task_name, dry_run)
示例#5
0
def task_show_config(ctx, task_name, diff, to_env_file):
    """
    If the task TASK_NAME has a "config:" section defined, print a list of
    all parameters for the task and the values they currently have in AWS.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    _show_config(task, task_name, diff, to_env_file)
示例#6
0
def task_update(ctx, task_name):
    """
    Update the task definition for the specified task.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    task.update()
示例#7
0
def task_unschedule(ctx, task_name):
    """
    Unschedule the specified task.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    task.unschedule()
示例#8
0
def task_schedule(ctx, task_name):
    """
    Schedule the specified task according to the schedule expression defined in the yml file.
    """
    task = Task(task_name, config=ctx.obj['CONFIG'])
    task.schedule()