Skip to content

Commit

Permalink
Merge pull request #409 from radical-cybertools/fix/flux_log
Browse files Browse the repository at this point in the history
Fix/flux log
  • Loading branch information
andre-merzky authored Jun 11, 2024
2 parents ff705fc + e21b774 commit e48588e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/radical/utils/flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class FluxHelper(object):

# --------------------------------------------------------------------------
#
def __init__(self) -> None:
def __init__(self, uid:str = None) -> None:
'''
The Flux Helper c'tor takes no arguments and will initially not be
connected to a Flux instance. After construction, the application can
Expand Down Expand Up @@ -309,15 +309,16 @@ def __init__(self) -> None:

self._service : Optional[_FluxService] = None

self._uri = None
self._env = None
if uid: self._uid = uid
else : self._uid = generate_id('flux.%(item_counter)04d', ID_CUSTOM)

self._uid = generate_id('flux.%(item_counter)04d', ID_CUSTOM)
self._log = Logger(self._uid, ns='radical.utils')
self._prof = Profiler(self._uid, ns='radical.utils')

self._lock = mt.RLock()

self._uri = None
self._env = None
self._exe = None
self._handle = None
self._handles = list() # TODO
Expand Down

0 comments on commit e48588e

Please sign in to comment.