Ejemplo n.º 1
0
def deploy_service(service, user_uuid):
    build_uuid = service.get_latest_build().uuid if service.get_latest_build() else None
    deploy = Deploy.create_deploy(service,
                                  user_uuid=user_uuid,
                                  build_uuid=build_uuid)
    queue().enqueue_call(func=deploy_f, args=[service.uuid, deploy.uuid], timeout=300)
    return deploy
Ejemplo n.º 2
0
def deploy_database_service(service, user_uuid):
    deploy = Deploy.create_deploy(service,
                                  user_uuid=user_uuid)
    queue().enqueue_call(func=deploy_f, args=[service.uuid, deploy.uuid])
    return deploy