Skip to content

Commit

Permalink
logfile filx
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Jun 10, 2024
1 parent ff705fc commit edaafba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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, name: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 @@ -313,6 +313,7 @@ def __init__(self) -> None:
self._env = None

self._uid = generate_id('flux.%(item_counter)04d', ID_CUSTOM)
self._name = name or self._uid

This comment was marked as resolved.

Copy link
@mtitov

mtitov Jun 10, 2024

Collaborator

@andre-merzky maybe use it for _uid directly?
self._uid = uid or generate_id(.. (and provide uid as an input argument)
thus not to generate new uids when new instance is created

self._log = Logger(self._uid, ns='radical.utils')
self._prof = Profiler(self._uid, ns='radical.utils')

Expand Down

0 comments on commit edaafba

Please sign in to comment.