Skip to content

Commit

Permalink
use uid for flux log names
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Jun 10, 2024
1 parent 74b79a0 commit e21b774
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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, name:str = None) -> 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,16 +309,16 @@ def __init__(self, name:str = None) -> 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._name = name or self._uid
self._log = Logger(self._name, ns='radical.utils')
self._prof = Profiler(self._name, ns='radical.utils')
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 e21b774

Please sign in to comment.