Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
gongy committed Sep 10, 2024
1 parent 40aa066 commit 1272c90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modal/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@ def stop_fetching_inputs():
_ContainerIOManager.stop_fetching_inputs()




def get_local_input_concurrency():
"""Get the container's local input concurrency. Return 0 if the container is not running."""

return _ContainerIOManager.get_input_concurrency()

async def _logger(message: str) -> None:
"""Log a message to the Modal logs."""
"""Send a structured log with tags."""
request = api_pb2.ContainerLogRequest(message=message, input_id=current_input_id())
io_manager = _ContainerIOManager._singleton
assert io_manager is not None
await retry_transient_errors(io_manager._client.stub.ContainerLog, request)


logger = synchronize_api(_logger)

0 comments on commit 1272c90

Please sign in to comment.