run-task - Cloud Foundry CLI Reference Guide


이름

run-task - 앱에서 일회성 태스크 실행

사용법

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

별명

rt

옵션

--command, -c

실행할 명령

-k

디스크 한계(예: 256M, 1024M, 1G)

-m

메모리 한계(예: 256M, 1024M, 1G)

--name

태스크를 제공할 이름(생략된 경우에는 생성됨)

--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

다음도 참조

logs, tasks, terminate-task