cloudfoundry上不起作用

cloudfoundry上不起作用

本文介绍了为什么"cf run-task"命令在swisscom cloudfoundry上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试让"cf运行任务"在swisscom cloudfoundry实例上工作.但是,即使使用最简单的命令,它也会失败:

I'm trying to get 'cf run-task' to work on the swisscom cloudfoundry instance. But it fails with even the simplest command:

$ cf run-task hostapp "echo SUCCESS" --name task1
Creating task for app hostapp in org xxx / space yyy as [email protected]...
Unexpected Response
Response Code: 404
FAILED

cf api版本2.96.0尚不支持run-task吗? (这似乎是swisscom env上的当前安装版本)

Is run-task not yet supported in cf api version 2.96.0? (which seems to be the current installed version on the swisscom env)

推荐答案

Swisscom应用程序云尚未激活cf run-task功能.到目前为止,最好使用cf ssh,然后从容器中手动运行命令,或者将这些任务作为幂等操作包含在应用程序的启动脚本中.

The Swisscom Application Cloud has not activated the cf run-task feature yet. As of now, it's best to use cf ssh and then run the command manually from within your container or include these tasks as idempotent actions in your app's startup script.

cf run-task将在以后的应用程序云版本中启用.

cf run-task will be enabled in a future release of the Application Cloud.

这篇关于为什么"cf run-task"命令在swisscom cloudfoundry上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 13:46