diff --git a/Makefile b/Makefile index 1330944..5f633c9 100644 --- a/Makefile +++ b/Makefile @@ -21,12 +21,13 @@ dev: ## Set the GCP project to dev clean: rm -rf env build **/wandb **/embeddings **/indexes *.egg-info **/index_infos.json **/__pycache__ +# git add --all -- :!notebooks release: @VERSION=$$(cat setup.py | grep version | cut -d '"' -f 2); \ echo "Releasing version $$VERSION"; \ - git add --all -- :!notebooks; \ read -p "Commit content:" COMMIT; \ + git add langame setup.py run Makefile; \ echo "Committing '$$VERSION: $$COMMIT'"; \ git commit -m "$$VERSION: $$COMMIT"; \ git push origin main; \ diff --git a/langame/functions/services.py b/langame/functions/services.py index 7a7cd34..b05869b 100644 --- a/langame/functions/services.py +++ b/langame/functions/services.py @@ -154,17 +154,16 @@ async def generate() -> Tuple[Optional[DocumentSnapshot], Optional[dict]]: ) + new_history ) - # don't wait these meta updates - t1 = org_doc.reference.update( + # sync + org_doc.reference.update( { "credits": firestore.Increment(-1), "lastSpent": firestore.SERVER_TIMESTAMP, } ) - t2 = conversation_starters_history_docs.reference.set( + await conversation_starters_history_docs.reference.set( {"conversation_starters": conversation_starters_history}, merge=True ) - await asyncio.gather(t1, t2) # Return the conversation starters return conversation_starters, None diff --git a/run/collection/service.prod.yaml b/run/collection/service.prod.yaml index ddc3cd8..484821f 100644 --- a/run/collection/service.prod.yaml +++ b/run/collection/service.prod.yaml @@ -14,7 +14,7 @@ spec: spec: containerConcurrency: 5 containers: - image: gcr.io/langame-86ac4/collection:1.1.8 + image: gcr.io/langame-86ac4/collection:1.1.9 ports: - containerPort: 8080 name: http1 @@ -22,7 +22,7 @@ spec: - name: GET_MEMES_URL value: "https://us-central1-langame-86ac4.cloudfunctions.net/getMemes" - name: SENTRY_RELEASE - value: "1.1.8" + value: "1.1.9" - name: ENVIRONMENT value: "production" resources: diff --git a/setup.py b/setup.py index 9f280f2..05a90df 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ name="langame", packages=find_packages(), include_package_data=True, - version="1.4.1", + version="1.4.2", description="", install_requires=[ "firebase_admin",