Skip to content

Commit

Permalink
Merge pull request #340 from HSF/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wguanicedew authored Sep 6, 2024
2 parents 4e63009 + 177f314 commit 2564813
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 16 deletions.
3 changes: 1 addition & 2 deletions atlas/tools/env/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ dependencies:
- python==3.6
- pip
- pip:
- futures # multiple process/threads
- unittest2 # unit test tool
- pep8 # checks for PEP8 code style compliance
- flake8 # Wrapper around PyFlakes&pep8
Expand All @@ -14,4 +13,4 @@ dependencies:
- rucio-clients
- rucio-clients-atlas
- idds-common==2.1.30
- idds-workflow==2.1.30
- idds-workflow==2.1.30
8 changes: 4 additions & 4 deletions client/lib/idds/client/clientmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def get_collections(self, request_id=None, transform_id=None, workload_id=None,

colls = self.client.get_collections(request_id=request_id, transform_id=transform_id, workload_id=workload_id,
scope=scope, name=name, relation_type=relation_type)
return True, colls
return colls

def get_contents(self, request_id=None, transform_id=None, workload_id=None, coll_scope=None, coll_name=None, relation_type=None, status=None):
"""
Expand All @@ -892,7 +892,7 @@ def get_contents(self, request_id=None, transform_id=None, workload_id=None, col

contents = self.client.get_contents(request_id=request_id, transform_id=transform_id, workload_id=workload_id,
coll_scope=coll_scope, coll_name=coll_name, relation_type=relation_type, status=status)
return True, contents
return contents

@exception_handler
def get_contents_output_ext(self, request_id=None, workload_id=None, transform_id=None, group_by_jedi_task_id=False):
Expand All @@ -909,7 +909,7 @@ def get_contents_output_ext(self, request_id=None, workload_id=None, transform_i

contents = self.client.get_contents_output_ext(workload_id=workload_id, request_id=request_id, transform_id=transform_id,
group_by_jedi_task_id=group_by_jedi_task_id)
return True, contents
return contents

@exception_handler
def update_build_request(self, request_id, signature, workflow):
Expand All @@ -925,7 +925,7 @@ def update_build_request(self, request_id, signature, workflow):
self.setup_client()

ret = self.client.update_build_request(request_id=request_id, signature=signature, workflow=workflow)
return True, ret
return ret

@exception_handler
def get_metainfo(self, name):
Expand Down
3 changes: 1 addition & 2 deletions doma/tools/env/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ dependencies:
- python==3.6
- pip
- pip:
- futures # multiple process/threads
- panda-client-light # panda client
- idds-common==2.1.30
- idds-workflow==2.1.30
- idds-workflow==2.1.30
1 change: 0 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies:
- retrying # retrying behavior
- mysqlclient # mysql python client
#- web.py # web service
- futures # multiple process/threads
- stomp.py # Messaging broker client
- cx-Oracle # Oralce client
- unittest2 # unit test tool
Expand Down
3 changes: 1 addition & 2 deletions main/tools/env/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
# - mysqlclient # mysql python client
- mod_wsgi # apache wsgi module
- flask # web service
- futures # multiple process/threads
- stomp.py # Messaging broker client
- cx-Oracle # Oralce client
- unittest2 # unit test tool
Expand All @@ -30,4 +29,4 @@ dependencies:
- alembic
- deepdiff
- pyzmq
- oic
- oic
1 change: 0 additions & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ dependencies:
# - mysqlclient # mysql python client
- mod_wsgi # apache wsgi module
- flask # web service
- futures # multiple process/threads
- stomp.py # Messaging broker client
- cx-Oracle # Oralce client
- unittest2 # unit test tool
Expand Down
1 change: 0 additions & 1 deletion tools/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies:
- retrying # retrying behavior
- mysqlclient # mysql python client
#- web.py # web service
- futures # multiple process/threads
- stomp.py # Messaging broker client
- cx-Oracle # Oralce client
- unittest2 # unit test tool
Expand Down
6 changes: 3 additions & 3 deletions workflow/lib/idds/iworkflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,12 +1261,12 @@ def get_func_name(self):
# foo = workflow(arg)(foo)
def workflow(func=None, *, local=False, service='idds', source_dir=None, primary=False, queue=None, site=None, cloud=None,
max_walltime=24 * 3600, distributed=True, init_env=None, pre_kwargs={}, return_workflow=False, no_wraps=False,
source_dir_parent_level=None, exclude_source_files=[], clean_env=None):
source_dir_parent_level=None, exclude_source_files=[], enable_separate_log=False, clean_env=None):
if func is None:
return functools.partial(workflow, local=local, service=service, source_dir=source_dir, primary=primary, queue=queue, site=site, cloud=cloud,
max_walltime=max_walltime, distributed=distributed, init_env=init_env, pre_kwargs=pre_kwargs, no_wraps=no_wraps,
return_workflow=return_workflow, source_dir_parent_level=source_dir_parent_level,
exclude_source_files=exclude_source_files, clean_env=clean_env)
exclude_source_files=exclude_source_files, clean_env=clean_env, enable_separate_log=enable_separate_log)

if 'IDDS_IGNORE_WORKFLOW_DECORATOR' in os.environ:
return func
Expand All @@ -1276,7 +1276,7 @@ def wrapper(*args, **kwargs):
try:
f = Workflow(func, service=service, source_dir=source_dir, local=local, max_walltime=max_walltime, distributed=distributed,
pre_kwargs=pre_kwargs, args=args, kwargs=kwargs, init_env=init_env, source_dir_parent_level=source_dir_parent_level,
exclude_source_files=exclude_source_files, clean_env=clean_env)
exclude_source_files=exclude_source_files, clean_env=clean_env, enable_separate_log=enable_separate_log)

f.queue = queue
f.site = site
Expand Down

0 comments on commit 2564813

Please sign in to comment.