Skip to content

Add cf task <app> <id> command #3308

@Samze

Description

@Samze

What's the user value of this feature request?
Related to the problem described in #3274. If I want to run a cf task and get the status of that task, I must do, cf run-task, cf tasks. This can cause issues in larger environments where there are lots of tasks associated with an app.

Who is the functionality for?
Application Developers

How often will this functionality be used by the user?
As part of the core workflow for running and obtaining tasks.

Who else is affected by the change?
New command, so not a breaking change.

Is your feature request related to a problem? Please describe.
#3274

Describe the solution you'd like
A clear and concise description of what you want to happen.

Example output

cf task <my_app> 123

id: 123
name: my-task
start time:  Fri, 08 Nov 2024 16:23:17 UTC   
state:  SUCCEEDED
command: ls
result: null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions