run-task - Cloud Foundry CLI Reference Guide


NOME

run-task - Execute uma tarefa única em um app

USO

cf run-task APP_NAME [--command COMMAND] [-k DISK] [-m MEMORY] [--name TASK_NAME] [--process PROCESS_TYPE]

TIP

Use 'cf logs' to display the logs of the app and all its tasks. If your task name is unique, grep this command's output for the task name to view task-specific logs.

EXAMPLES

cf run-task my-app --command "bundle exec rake db:migrate" --name migrate cf run-task my-app --process batch_job cf run-task my-app

ALIAS

rt

OPÇÕES

--command, -c

O comando para executar

-k

Limite de disco (por exemplo, 256 M, 1024 M, 1 G)

-m

Limite de memória (por exemplo, 256 M, 1024 M, 1 G)

--name

Nome para fornecer à tarefa (gerado, se omitido)

--process

Process type to use as a template for command, memory, and disk for the created task.

--wait, -w

Wait for the task to complete before exiting

VEJA TAMBÉM

logs, tasks, terminate-task