From 1773524c3415eaee169d8c371efc61ec18ea7b25 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Mon, 11 Apr 2022 18:51:57 -0400 Subject: [PATCH] wait longer between service status checks let RMQ instance persist let buildpack set start command --- Connectors/src/MySql/manifest.yml | 1 - Connectors/src/MySqlEFCore/manifest.yml | 1 - Connectors/src/RabbitMQ/scaffold/cloudfoundry.py | 2 +- pysteel/cloudfoundry.py | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Connectors/src/MySql/manifest.yml b/Connectors/src/MySql/manifest.yml index d6498fc2..ea646365 100644 --- a/Connectors/src/MySql/manifest.yml +++ b/Connectors/src/MySql/manifest.yml @@ -4,7 +4,6 @@ applications: buildpacks: - dotnet_core_buildpack memory: 256M - command: cd ${HOME} && ./MySql env: ASPNETCORE_ENVIRONMENT: Development DOTNET_CLI_TELEMETRY_OPTOUT: "true" diff --git a/Connectors/src/MySqlEFCore/manifest.yml b/Connectors/src/MySqlEFCore/manifest.yml index 1e93b1de..1a20e4ac 100644 --- a/Connectors/src/MySqlEFCore/manifest.yml +++ b/Connectors/src/MySqlEFCore/manifest.yml @@ -4,7 +4,6 @@ applications: buildpacks: - dotnet_core_buildpack memory: 256M - command: cd ${HOME} && ./MySqlEFCore env: ASPNETCORE_ENVIRONMENT: Production DOTNET_CLI_TELEMETRY_OPTOUT: "true" diff --git a/Connectors/src/RabbitMQ/scaffold/cloudfoundry.py b/Connectors/src/RabbitMQ/scaffold/cloudfoundry.py index 7b5593f0..dabec128 100644 --- a/Connectors/src/RabbitMQ/scaffold/cloudfoundry.py +++ b/Connectors/src/RabbitMQ/scaffold/cloudfoundry.py @@ -13,5 +13,5 @@ def setup(context): service = 'p.rabbitmq' plan = 'single-node' instance = 'myRabbitMQService' - cf.delete_service(instance) + #cf.delete_service(instance) cf.create_service(service, plan, instance) diff --git a/pysteel/cloudfoundry.py b/pysteel/cloudfoundry.py index 4b1becb2..1039e1f2 100644 --- a/pysteel/cloudfoundry.py +++ b/pysteel/cloudfoundry.py @@ -89,7 +89,7 @@ class CloudFoundry(object): self._context.log.info('service instance "{}" status not yet available'.format(service_instance)) else: self._context.log.info('service instance "{}" status: "{}"'.format(service_instance, status)) - time.sleep(1) + time.sleep(5) def create_user_provided_service(self, service_instance, credentials=None): """