Skip to content

Commit

Permalink
Updating constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Renan Souza committed Aug 5, 2021
1 parent bb69ca3 commit d8502bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


setup(name='provlake',
version='0.1.4',
version='0.1.5',
description='A Python lib to capture multiworkflow provenance data from Python Scripts',
url='http://ibm.biz/provlake',
author='IBM Research',
Expand Down
5 changes: 0 additions & 5 deletions src/provlake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,13 @@ def _build_managed_persister(
db_name: str,
wf_exec_id=None
) -> ManagedPersister:

should_send_to_service = False
if service_url is not None:
should_send_to_service = True

if not bag_size:
bag_size = int(os.getenv("PROV_BAG_SIZE", 1))

#self.last_task_id = 0
#task_id = str(self.last_task_id) + "_" + str(id(self)) if self.cores > 1 else str(self.last_task_id)
#self.tasks = dict()

if not should_send_to_service:
assert should_send_to_file is True, "If you are using ProvLake in offline mode, " \
"you need to log prov data to file. Check your 'should_send_to_file' and " \
Expand Down
12 changes: 6 additions & 6 deletions src/provlake/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,24 @@ def get_dte_id(wfe_id, dt_name: str, prov_task: dict):

@staticmethod
def get_wfe_ctx_id(wfe_id):
return wfe_id+"_ctx"
return wfe_id+"_wfe_ctx"

@staticmethod
def get_cce_ctx_id(cce_id):
return cce_id + "_ctx"
return cce_id + "_cce_ctx"

@staticmethod
def get_cci_ctx_id(cci_id):
return cci_id + "_ctx"
return cci_id + "_cci_ctx"

@staticmethod
def get_wfe_instantiations_ctx_id(wfe_id):
return wfe_id + "_instantiation"
return wfe_id + "_wfe_instantiation_ctx"

@staticmethod
def get_cce_instantiations_ctx_id(cce_id):
return cce_id + "_instantiation"
return cce_id + "_cce_instantiation_ctx"

@staticmethod
def get_cci_instantiations_ctx_id(cci_id):
return cci_id + "_instantiation"
return cci_id + "_cci_instantiation_ctx"

0 comments on commit d8502bf

Please sign in to comment.