gooddata-flight-server 1.43.0__py3-none-any.whl → 1.43.1.dev2__py3-none-any.whl

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.

Potentially problematic release.


This version of gooddata-flight-server might be problematic. Click here for more details.

@@ -54,6 +54,15 @@ class TaskExecutor(abc.ABC):
54
54
  """
55
55
  raise NotImplementedError
56
56
 
57
+ @abc.abstractmethod
58
+ def get_task_submitted_timestamp(self, task_id: str) -> Optional[float]:
59
+ """
60
+ Returns the timestamp of when the task with the given id was submitted.
61
+ :param task_id: task id to get the timestamp for
62
+ :return: Timestamp in seconds since epoch of when the task was submitted or None if there is no such task
63
+ """
64
+ raise NotImplementedError
65
+
57
66
  @abc.abstractmethod
58
67
  def wait_for_result(self, task_id: str, timeout: Optional[float] = None) -> Optional[TaskExecutionResult]:
59
68
  """
@@ -565,6 +565,14 @@ class ThreadTaskExecutor(TaskExecutor, _TaskExecutionCallbacks):
565
565
  execution.start()
566
566
  self._metrics.queue_size.set(self._queue_size)
567
567
 
568
+ def get_task_submitted_timestamp(self, task_id: str) -> Optional[float]:
569
+ with self._task_lock:
570
+ execution = self._executions.get(task_id)
571
+
572
+ if execution is not None:
573
+ return execution.stats.created
574
+ return None
575
+
568
576
  def wait_for_result(self, task_id: str, timeout: Optional[float] = None) -> Optional[TaskExecutionResult]:
569
577
  with self._task_lock:
570
578
  execution = self._executions.get(task_id)
@@ -597,8 +605,8 @@ class ThreadTaskExecutor(TaskExecutor, _TaskExecutionCallbacks):
597
605
  return True
598
606
 
599
607
  if execution is None:
600
- # the task was not and is not running - cancel not possible
601
- return False
608
+ # the task was not and is not running - cancel not necessary
609
+ return True
602
610
 
603
611
  return execution.cancel()
604
612
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gooddata-flight-server
3
- Version: 1.43.0
3
+ Version: 1.43.1.dev2
4
4
  Summary: Flight RPC server to host custom functions
5
5
  Author: GoodData
6
6
  Author-email: support@gooddata.com
7
7
  License: MIT
8
- Project-URL: Documentation, https://gooddata-flight-server.readthedocs.io/en/v1.43.0
8
+ Project-URL: Documentation, https://gooddata-flight-server.readthedocs.io/en/v1.43.1.dev2
9
9
  Project-URL: Source, https://github.com/gooddata/gooddata-python-sdk
10
10
  Keywords: gooddata,flight,rpc,flight rpc,custom functions,analytics,headless,business,intelligence,headless-bi,cloud,native,semantic,layer,sql,metrics
11
11
  Classifier: Development Status :: 4 - Beta
@@ -32,18 +32,18 @@ gooddata_flight_server/tasks/base.py,sha256=e_8sV9JROtXo4rhAWXKvaPbKjm5T_0iFQyXn
32
32
  gooddata_flight_server/tasks/metrics.py,sha256=PY5FAp0lCEvsDX_xJNJ_soRZeTQ795OVh9CmBWSto7k,4085
33
33
  gooddata_flight_server/tasks/task.py,sha256=9Qzhssw53vnlUf5ULL1LsrMrjpG1jAbQBXOc1apHBH4,6485
34
34
  gooddata_flight_server/tasks/task_error.py,sha256=1Z2vJfRqRXaQk7fGMo2kGP9wLyxqngutjWyQIYpRNy8,2377
35
- gooddata_flight_server/tasks/task_executor.py,sha256=W7Ml5W1mIi_5L6C4a0c3YgDR1YGVQn48lXYGj_rRaKw,3728
35
+ gooddata_flight_server/tasks/task_executor.py,sha256=xNO4UcBfdgs8aWr4KF7GNjfpXH5xy305sYyCArqFMu0,4139
36
36
  gooddata_flight_server/tasks/task_result.py,sha256=1EqgP6xmhDDiWZYqJEOZxYZzUqAkRYF7ogsqNWAF4O4,12152
37
37
  gooddata_flight_server/tasks/temporal_container.py,sha256=biNEUOSmp3D6iVoGBZnHo88tALdIwkb-SzR5besKmNo,8503
38
- gooddata_flight_server/tasks/thread_task_executor.py,sha256=uWC7PX8FvPHfwkwPxqeUOr_BaHNb1CUXsQZcmjZAy0E,21949
38
+ gooddata_flight_server/tasks/thread_task_executor.py,sha256=QfluNnrm4LivPjfcXBJMyyUa-zX-EN65dnFayInd34A,22209
39
39
  gooddata_flight_server/utils/__init__.py,sha256=nfaUa69U3uZAB1udH6tza0se-3fhrsSurgPUQldoGnE,32
40
40
  gooddata_flight_server/utils/libc_utils.py,sha256=_ZwKeeB0lk2xh-gSC_7rc9felHu_hq9__GgLKZBI9sI,946
41
41
  gooddata_flight_server/utils/logging.py,sha256=3sip4Xte5YHjZNyQEQVo96rCsknxG1JPj7cIbnz0iBo,6081
42
42
  gooddata_flight_server/utils/methods_discovery.py,sha256=ZcBJU5dHBsnZD5zDXajE5merwCISfjHGcIlIWCQtNLY,3618
43
43
  gooddata_flight_server/utils/otel_tracing.py,sha256=MfKFh0TkVSUmPC6f8Oobp5XSCYxAsQyS0UaSJQF1nCw,4540
44
- gooddata_flight_server-1.43.0.data/scripts/gooddata-flight-server,sha256=cXl4cF_pNme_0ns-Dap825C_L-0ovWs9hmlNl7kN9kU,239
45
- gooddata_flight_server-1.43.0.dist-info/licenses/LICENSE.txt,sha256=o90MhGat28171lD8r77bLXsSnvDVu9CQAsWxAzx1Z2E,1064
46
- gooddata_flight_server-1.43.0.dist-info/METADATA,sha256=0JWbjllwEupvkyswjdfamOPkU39vfYe46cJcxfOZqw4,30259
47
- gooddata_flight_server-1.43.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- gooddata_flight_server-1.43.0.dist-info/top_level.txt,sha256=fkhUrPUK9CeUzu3qMaEXJbY-HVuY-sqUx8ct7AtZH0s,23
49
- gooddata_flight_server-1.43.0.dist-info/RECORD,,
44
+ gooddata_flight_server-1.43.1.dev2.data/scripts/gooddata-flight-server,sha256=cXl4cF_pNme_0ns-Dap825C_L-0ovWs9hmlNl7kN9kU,239
45
+ gooddata_flight_server-1.43.1.dev2.dist-info/licenses/LICENSE.txt,sha256=o90MhGat28171lD8r77bLXsSnvDVu9CQAsWxAzx1Z2E,1064
46
+ gooddata_flight_server-1.43.1.dev2.dist-info/METADATA,sha256=xlzciUf6uwVAXEbCVmlbMuyeACn-rVnU1yVVIntXTy0,30269
47
+ gooddata_flight_server-1.43.1.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ gooddata_flight_server-1.43.1.dev2.dist-info/top_level.txt,sha256=fkhUrPUK9CeUzu3qMaEXJbY-HVuY-sqUx8ct7AtZH0s,23
49
+ gooddata_flight_server-1.43.1.dev2.dist-info/RECORD,,