Reputation: 24699
I am using the latest Pivotal Cloud Foundry, i.e version 1.8.
Running cf feature-flags
indicates that tasks creation is indeed enabled.
My Spring app is using the latest Spring Cloud Tasks library, i.e. version 1.1.0.RELEASE, and tasks are enabled by @EnableTask
annotation.
However, when I cf push
the app, it is restarted as if it were treated as a LRP (Long Running Process) and not as a task...
Can someone please help? What I am missing?
edit: The latest version of PWS Cloud Foundry is now: 1.9 but my question remains relevant.
Upvotes: 2
Views: 1958
Reputation: 1485
Tasks can be created using the API (http://v3-apidocs.cloudfoundry.org/version/3.0.0/index.html#the-task-object) and from mid-Dec with the cf CLI (cf run-task
).
Upvotes: 2
Reputation: 24699
In order to cf push
an application without it being picked up as a web/LRP process, one has to pass in the --no-route
argument to cf push
.
There is a no-route: true
equivalent if one uses a manifest.yml
.
Upvotes: 1