Skip to content

Commit

Permalink
Add more log
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Jul 11, 2024
1 parent b1a2eb3 commit c41c578
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docker/Dockerfile.matrix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ COPY --from=builder /source/dist/*.whl /tmp/

RUN pip install --no-cache-dir $(echo /tmp/*.whl)[matrix]

ENV MORIARTY_LOG_LEVEL=INFO

ENTRYPOINT [ "tini", "--" ]
2 changes: 0 additions & 2 deletions docker/Dockerfile.sidecar
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ COPY --from=builder /source/dist/*.whl /tmp/

RUN pip install --no-cache-dir $(echo /tmp/*.whl)

ENV MORIARTY_LOG_LEVEL=INFO


ENTRYPOINT [ "tini", "--" ]
CMD [ "moriarty-sidecar", "start" ]
2 changes: 2 additions & 0 deletions moriarty/matrix/operator_/operator_.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ async def _warp_produce_job(job: InferenceJob) -> None:
)
).scalar_one_or_none() is not None
if is_processed:
logger.info(f"Job already processed: {job}, skip")
return

await self.job_producer.invoke(
Expand All @@ -144,6 +145,7 @@ async def _warp_produce_job(job: InferenceJob) -> None:
)
self.session.add(log_orm)
await self.session.commit()
logger.debug(f"Inference job logged: {job}")

logger.info(f"Bridge endpoint: {endpoint_name}")
while await self.has_capacity(endpoint_name):
Expand Down
1 change: 1 addition & 0 deletions start-minikube.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash

minikube start --driver docker --container-runtime docker --gpus all
minikube addons enable metrics-server
kubectl create ns moriarty

0 comments on commit c41c578

Please sign in to comment.