flowcept 0.8.6__py3-none-any.whl → 0.8.7__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.
@@ -61,18 +61,22 @@ class MongoDBDAO(DocumentDBDAO):
61
61
  self.logger = FlowceptLogger()
62
62
 
63
63
  if MONGO_URI is not None:
64
- self._client = MongoClient(MONGO_URI,
65
- maxPoolSize=1000, # TODO: conf file
66
- socketTimeoutMS=60000,
67
- connectTimeoutMS=60000,
68
- serverSelectionTimeoutMS=60000
69
- )
64
+ self._client = MongoClient(
65
+ MONGO_URI,
66
+ maxPoolSize=1000, # TODO: conf file
67
+ socketTimeoutMS=60000,
68
+ connectTimeoutMS=60000,
69
+ serverSelectionTimeoutMS=60000,
70
+ )
70
71
  else:
71
- self._client = MongoClient(MONGO_HOST, MONGO_PORT, maxPoolSize=1000,
72
- socketTimeoutMS=60000,
73
- connectTimeoutMS=60000,
74
- serverSelectionTimeoutMS=60000
75
- )
72
+ self._client = MongoClient(
73
+ MONGO_HOST,
74
+ MONGO_PORT,
75
+ maxPoolSize=1000,
76
+ socketTimeoutMS=60000,
77
+ connectTimeoutMS=60000,
78
+ serverSelectionTimeoutMS=60000,
79
+ )
76
80
  self._db = self._client[MONGO_DB]
77
81
 
78
82
  self._tasks_collection = self._db["tasks"]
@@ -65,7 +65,7 @@ class MQDaoMofka(MQDao):
65
65
 
66
66
  def _bulk_publish(self, buffer, channel=MQ_CHANNEL, serializer=msgpack.dumps):
67
67
  try:
68
- #self.logger.debug(f"Going to send Message:\n\t[BEGIN_MSG]{buffer}\n[END_MSG]\t")
68
+ # self.logger.debug(f"Going to send Message:\n\t[BEGIN_MSG]{buffer}\n[END_MSG]\t")
69
69
  for m in buffer:
70
70
  self.producer.push(m)
71
71
 
@@ -75,14 +75,14 @@ class MQDaoMofka(MQDao):
75
75
  self.logger.error(f"Message that caused error: {buffer}")
76
76
  try:
77
77
  self.producer.flush()
78
- #self.logger.info(f"Flushed {len(buffer)} msgs to MQ!")
78
+ # self.logger.info(f"Flushed {len(buffer)} msgs to MQ!")
79
79
  except Exception as e:
80
80
  self.logger.exception(e)
81
81
 
82
82
  def _bulk_publish_timed(self, buffer, channel=MQ_CHANNEL, serializer=msgpack.dumps):
83
83
  total = 0
84
84
  try:
85
- #self.logger.debug(f"Going to send Message:\n\t[BEGIN_MSG]{buffer}\n[END_MSG]\t")
85
+ # self.logger.debug(f"Going to send Message:\n\t[BEGIN_MSG]{buffer}\n[END_MSG]\t")
86
86
 
87
87
  for m in buffer:
88
88
  self.producer.push(m)
@@ -8,7 +8,8 @@ from flowcept.commons.flowcept_dataclasses.workflow_object import (
8
8
  WorkflowObject,
9
9
  )
10
10
  from flowcept.configs import (
11
- ENRICH_MESSAGES, INSTRUMENTATION,
11
+ ENRICH_MESSAGES,
12
+ INSTRUMENTATION,
12
13
  )
13
14
  from flowcept.commons.flowcept_logger import FlowceptLogger
14
15
  from flowcept.commons.daos.mq_dao.mq_dao_base import MQDao
@@ -77,7 +77,6 @@ class DocumentInserter:
77
77
  flush_interval=INSERTION_BUFFER_TIME,
78
78
  )
79
79
 
80
-
81
80
  def _set_buffer_size(self):
82
81
  if not ADAPTIVE_DB_BUFFER_SIZE:
83
82
  return
@@ -216,7 +215,10 @@ class DocumentInserter:
216
215
  if self.check_safe_stops:
217
216
  trial = 0
218
217
  while not self._mq_dao.all_time_based_threads_ended(bundle_exec_id):
219
- self.logger.debug(f"# time_based_threads for bundle_exec_id {bundle_exec_id} is {self._mq_dao._keyvalue_dao.set_count(bundle_exec_id)}")
218
+ self.logger.debug(
219
+ f"# time_based_threads for bundle_exec_id {bundle_exec_id} is"
220
+ f"{self._mq_dao._keyvalue_dao.set_count(bundle_exec_id)}"
221
+ )
220
222
  trial += 1
221
223
  self.logger.info(
222
224
  f"Doc Inserter {id(self)}: It's still not safe to stop DocInserter. "
@@ -31,6 +31,7 @@ TORCH_CONFIG = INSTRUMENTATION.get("torch")
31
31
 
32
32
  REGISTER_WORKFLOW = TORCH_CONFIG.get("register_workflow", True)
33
33
 
34
+
34
35
  def flowcept_torch(cls):
35
36
  """
36
37
  A wrapper function that instruments PyTorch modules for workflow monitoring.
@@ -57,7 +57,7 @@ class FlowceptTask(object):
57
57
  activity_id: str = None,
58
58
  used: Dict = None,
59
59
  custom_metadata: Dict = None,
60
- flowcept: 'Flowcept' = None
60
+ flowcept: "Flowcept" = None,
61
61
  ):
62
62
  if not INSTRUMENTATION_ENABLED:
63
63
  self._ended = True
flowcept/version.py CHANGED
@@ -4,4 +4,4 @@
4
4
  # The expected format is: <Major>.<Minor>.<Patch>
5
5
  # This file is supposed to be automatically modified by the CI Bot.
6
6
  # See .github/workflows/version_bumper.py
7
- __version__ = "0.8.6"
7
+ __version__ = "0.8.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flowcept
3
- Version: 0.8.6
3
+ Version: 0.8.7
4
4
  Summary: Capture and query workflow provenance data using data observability
5
5
  Project-URL: GitHub, https://github.com/ORNL/flowcept
6
6
  Author: Oak Ridge National Laboratory
@@ -1,6 +1,6 @@
1
1
  flowcept/__init__.py,sha256=CukmdzTUvm6Y_plTKPq4kKn7w9LdR36j7V_C_UQyjhU,2011
2
2
  flowcept/configs.py,sha256=NDUAqqoKfztt6Qjwxy95eTQU71AovVJWXalI1x3HJ7Y,7441
3
- flowcept/version.py,sha256=3Xeg2e7hNlxinsNn_IjT041Xp9p4RX_yIks40uVvSJM,306
3
+ flowcept/version.py,sha256=VOEzbBIlAwCTu8Yc20ihIzsk7fgYS5oHS79aAfnDY98,306
4
4
  flowcept/analytics/__init__.py,sha256=46q-7vsHq_ddPNrzNnDgEOiRgvlx-5Ggu2ocyROMV0w,641
5
5
  flowcept/analytics/analytics_utils.py,sha256=FRJdBtQa7Hrk2oR_FFhmhmMf3X6YyZ4nbH5RIYh7KL4,8753
6
6
  flowcept/analytics/data_augmentation.py,sha256=Dyr5x316Zf-k1e8rVoQMCpFOrklYVHjfejRPrtoycmc,1641
@@ -17,11 +17,11 @@ flowcept/commons/daos/keyvalue_dao.py,sha256=03xHhQIfZas0LQLP1DbGJ5DoskXyZNXQKIN
17
17
  flowcept/commons/daos/docdb_dao/__init__.py,sha256=qRvXREeUJ4mkhxdC9bzpOsVX6M2FB5hDyLFxhMxTGhs,30
18
18
  flowcept/commons/daos/docdb_dao/docdb_dao_base.py,sha256=YbfSVJPwZGK2GBYkeapRC83HkmP0c6Msv5TriD88RcI,11812
19
19
  flowcept/commons/daos/docdb_dao/lmdb_dao.py,sha256=dJOLgCx_lwdz6MKiMpM_UE4rm0angDCPaVz_WU5KqIA,10407
20
- flowcept/commons/daos/docdb_dao/mongodb_dao.py,sha256=WGjlB_8fIsMPRx7LXPj52Uexuh-E69LKsW8vN_zcpPU,38568
20
+ flowcept/commons/daos/docdb_dao/mongodb_dao.py,sha256=0y9RiL54e1GxSTkRHFlMrLFAHWuB3YyNS2zLsnBPtxg,38456
21
21
  flowcept/commons/daos/mq_dao/__init__.py,sha256=Xxm4FmbBUZDQ7XIAmSFbeKE_AdHsbgFmSuftvMWSykQ,21
22
22
  flowcept/commons/daos/mq_dao/mq_dao_base.py,sha256=EAqOhy7Q8V29JFDG8C50nRK34KsPxEICkG4elk4ZfX8,9020
23
23
  flowcept/commons/daos/mq_dao/mq_dao_kafka.py,sha256=bf-bZvWw9JJk8Kdfzx2UkAnQC95rSrKXDEyYkrcncOk,4400
24
- flowcept/commons/daos/mq_dao/mq_dao_mofka.py,sha256=_9KlJwUuFKgTB8ZPQQSz4yQSe6oYKb0vrhm3XIT8jPw,3945
24
+ flowcept/commons/daos/mq_dao/mq_dao_mofka.py,sha256=Q_mgZ3C_4gTTvnuJ2ZLmJgJfbAOopeSR9jvznI4JRuo,3948
25
25
  flowcept/commons/daos/mq_dao/mq_dao_redis.py,sha256=Br97SoDIkt4dHH937Yjg3wtkn1xGT-x9t-8E3VD5TeU,4277
26
26
  flowcept/commons/flowcept_dataclasses/__init__.py,sha256=8KkiJh0WSRAB50waVluxCSI8Tb9X1L9nup4c8RN3ulc,30
27
27
  flowcept/commons/flowcept_dataclasses/base_settings_dataclasses.py,sha256=Cjw2PGYtZDfnwecz6G3S42Ncmxj7AIZVEBx05bsxRUo,399
@@ -40,7 +40,7 @@ flowcept/flowcept_webserver/resources/task_messages_rsrc.py,sha256=0u68it2W-9NzU
40
40
  flowcept/flowceptor/__init__.py,sha256=wVxRXUv07iNx6SMRRma2vqhR_GIcRl0re_WCYG65PUs,29
41
41
  flowcept/flowceptor/telemetry_capture.py,sha256=wSXyQJ-vPVzeldD4KqoLQA2rg7V0EOQo_11ErJE5oQQ,13743
42
42
  flowcept/flowceptor/adapters/__init__.py,sha256=SuZbSZVVQeBJ9zXW-M9jF09dw3XIjre3lSGrUO1Y8Po,27
43
- flowcept/flowceptor/adapters/base_interceptor.py,sha256=5guTHuuFpB7PYk9tQopdak5MBxcPMnsxDiZVUcEvJks,6483
43
+ flowcept/flowceptor/adapters/base_interceptor.py,sha256=a2CX7COCpYzIpQeVulrLJTSVIw453U-S2gmrMlouO5A,6487
44
44
  flowcept/flowceptor/adapters/instrumentation_interceptor.py,sha256=DhK2bBnpghqPSeA62BUqRg6pl8zxuYrP33dK4x6PhRE,733
45
45
  flowcept/flowceptor/adapters/interceptor_state_manager.py,sha256=xRzmi5YFKBEqNtX8F5s6XlMTRe27ml4BmQtBO4WtG2c,919
46
46
  flowcept/flowceptor/adapters/dask/__init__.py,sha256=GKreb5L_nliD2BEckyB943zOQ-b6Gn1fLDj81FqSK2Y,23
@@ -60,14 +60,14 @@ flowcept/flowceptor/adapters/zambeze/zambeze_dataclasses.py,sha256=nn9MxvcdzgmOa
60
60
  flowcept/flowceptor/adapters/zambeze/zambeze_interceptor.py,sha256=Bjyi48JW0DXJLJuvwPxaD8zxxsSoEFgSoXl8YcbwFWk,3782
61
61
  flowcept/flowceptor/consumers/__init__.py,sha256=foxtVEb2ZEe9g1slfYIKM4tIFv-He1l7XS--SYs7nlQ,28
62
62
  flowcept/flowceptor/consumers/consumer_utils.py,sha256=7bvFJWusJkfA4j0gwZLDIIsIOyfk9wRq6s5liS3JAV0,5665
63
- flowcept/flowceptor/consumers/document_inserter.py,sha256=m9B57j6C4vdwSZhbafgtqHKTvi4YMttmv-iShW5MYqs,9508
63
+ flowcept/flowceptor/consumers/document_inserter.py,sha256=fNPLa25oNhr3Y6-pRvzRp1zO4j3WBg7YXRnSHyDaaCo,9568
64
64
  flowcept/instrumentation/__init__.py,sha256=M5bTmg80E4QyN91gUX3qfw_nbtJSXwGWcKxdZP3vJz0,34
65
65
  flowcept/instrumentation/flowcept_loop.py,sha256=RvETm3Pn37dIw_a1RXigyh2U7MCBHqi46dPmbrz3RMQ,12171
66
66
  flowcept/instrumentation/flowcept_task.py,sha256=l_BAYEUZ_SeBt8QJN_E9D9QcZVYRnW9qO_XRnqvmePE,5993
67
- flowcept/instrumentation/flowcept_torch.py,sha256=BgJ0eOeCGOe0hjbyDQf-bHK_kFOvj9iSXC4PI1EikXE,23436
68
- flowcept/instrumentation/task_capture.py,sha256=DdudnrjiXS6EGsirdykMLi1rFFHWkJMX1C7uibjsjL4,4944
67
+ flowcept/instrumentation/flowcept_torch.py,sha256=mH4sI2FMtBpGk4hN3U6MUwqd6sOPER8TbigUkexfhDY,23437
68
+ flowcept/instrumentation/task_capture.py,sha256=fbTAhf4y69pRCpnaH8r0dczSmPyNINSpljMrVyUnp0U,4945
69
69
  resources/sample_settings.yaml,sha256=aKeHf8895vrHIbi0QS1w2WT5n8ZNI9Ep5PVPF5Y5MEQ,4957
70
- flowcept-0.8.6.dist-info/METADATA,sha256=nzqP4fruoqw-264-XNXJ0rlR_UfwsmqmmOW_J0GPYRM,18086
71
- flowcept-0.8.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
72
- flowcept-0.8.6.dist-info/licenses/LICENSE,sha256=r5-2P6tFTuRGWT5TiX32s1y0tnp4cIqBEC1QjTaXe2k,1086
73
- flowcept-0.8.6.dist-info/RECORD,,
70
+ flowcept-0.8.7.dist-info/METADATA,sha256=xRNvugAeW4JZkzUDzpYc96qOnxyu0-abqV6p6RArHZA,18086
71
+ flowcept-0.8.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
72
+ flowcept-0.8.7.dist-info/licenses/LICENSE,sha256=r5-2P6tFTuRGWT5TiX32s1y0tnp4cIqBEC1QjTaXe2k,1086
73
+ flowcept-0.8.7.dist-info/RECORD,,