{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/462","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/462/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/462/events","html_url":"https://github.com/spring-cloud/spring-cloud-stream/issues/462","id":145018698,"number":462,"title":"Spring Cloud Stream App doesn't automatically shutdown","user":{"login":"mminella","id":630743,"avatar_url":"https://avatars.githubusercontent.com/u/630743?v=3","gravatar_id":"","url":"https://api.github.com/users/mminella","html_url":"https://github.com/mminella","followers_url":"https://api.github.com/users/mminella/followers","following_url":"https://api.github.com/users/mminella/following{/other_user}","gists_url":"https://api.github.com/users/mminella/gists{/gist_id}","starred_url":"https://api.github.com/users/mminella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mminella/subscriptions","organizations_url":"https://api.github.com/users/mminella/orgs","repos_url":"https://api.github.com/users/mminella/repos","events_url":"https://api.github.com/users/mminella/events{/privacy}","received_events_url":"https://api.github.com/users/mminella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-31T21:06:36Z","updated_at":"2016-04-04T15:15:16Z","closed_at":null,"body":"When creating a Spring Cloud Task app that produces output on an SCSt channel, once the task is complete, the app does not shut down.  Adding `spring.main.web-environment=false` prevented Tomcat from starting but still does not allow the app to shut down."},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/comments/205343508","html_url":"https://github.com/spring-cloud/spring-cloud-stream/issues/462#issuecomment-205343508","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/462","id":205343508,"user":{"login":"mminella","id":630743,"avatar_url":"https://avatars.githubusercontent.com/u/630743?v=3","gravatar_id":"","url":"https://api.github.com/users/mminella","html_url":"https://github.com/mminella","followers_url":"https://api.github.com/users/mminella/followers","following_url":"https://api.github.com/users/mminella/following{/other_user}","gists_url":"https://api.github.com/users/mminella/gists{/gist_id}","starred_url":"https://api.github.com/users/mminella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mminella/subscriptions","organizations_url":"https://api.github.com/users/mminella/orgs","repos_url":"https://api.github.com/users/mminella/repos","events_url":"https://api.github.com/users/mminella/events{/privacy}","received_events_url":"https://api.github.com/users/mminella/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T15:15:16Z","updated_at":"2016-04-04T15:15:16Z","body":"@dsyer can feel free to contradict this, but I haven't interpreted that spring-cloud/spring-cloud-task#102 would prevent the context from shutting down, just that if you had an app that you wanted to live longer, you could do so and have the task complete.  That's not what's at issue here.  In fact, it's the opposite IMHO.  \r\n\r\nFundamentally this becomes a bigger issue in that we can't have tasks emit events (either raw task events or batch events like we had in XD) and support the promised behavior of tasks in that they shut down on their own.  AKA, we're saying that we can't have true task based functionality (short lived microservices) that emit events via Spring Cloud Streams.  Obviously the lack of that type of functionality then also means that our orchestration story cannot come full circle.  "}}