ivcap-lambda 0.8.4__tar.gz → 0.8.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ivcap-lambda
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary: Helper functions for building lambda-style services on the IVCAP platform
5
5
  License-File: AUTHORS.md
6
6
  License-File: LICENSE
@@ -9,6 +9,7 @@ import sys
9
9
  from collections.abc import Callable
10
10
  from logging import Logger
11
11
  from signal import SIGTERM, signal
12
+ from threading import current_thread
12
13
  from typing import Any
13
14
 
14
15
  import uvicorn
@@ -217,7 +218,8 @@ def start_lambda_server(
217
218
  def get_context():
218
219
  jctxt = get_job_context()
219
220
  if jctxt is None or jctxt.job_id is None:
220
- logger.warning("missing job context in thread")
221
+ if not current_thread().name.startswith("Otel"):
222
+ logger.warning("missing job context in thread")
221
223
  return None
222
224
  return jctxt
223
225
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ivcap-lambda"
3
- version = "0.8.4"
3
+ version = "0.8.5"
4
4
  description = "Helper functions for building lambda-style services on the IVCAP platform"
5
5
 
6
6
  authors = ["Max Ott <max.ott@csiro.au>"]
File without changes
File without changes
File without changes