spring-cloud/spring-cloud-deployer-cloudfoundry

TaskLauncher getRunningTaskExecutionCount() should only include platform org and space

dturanski opened this issue · 0 comments

Hi David - Let me provide you with some more information from the ticket."Within this single foundation, we have multiple ORGS and SPACES therein. Our app alone resides in ORG(s): Tax_us-prd and Tax_us-ext-uat (external uat user testing). The space for both is DigitalTaxPaymentDecisions.
Issue: in both Orgs we are running Spring Cloud Data Flow as a service, each instance having a unique url/instance of EXT-UAT and PRD
Our issue is that sometimes PROD will report "The maximum concurrent task executions is at its limit [20]". But if we look at PROD Dataflow, there are no running tasks.
Through research we have come to find that the url above is reporting counts for the entire PROD foundation regardless of ORG, Space.
If we run cf curl v3/tasks?states=RUNNING from cf cli, we only see the tasks that we have org/space access to, but it also shows all orgs, regardless of which one we actually logged into.

Question:

  1. How do we isolate concurrent running task count by org and space?
  2. How do we configure the maximumTaskExecutions by org and space? (edited)