Closed Klaim closed 3 weeks ago
Last issues:
mamba::Context
instance destruction (which now removes the loggers)Yeah the ci issue is definitely not related to this PR but not sure if it's a good idea to merge.
I opened another PR to reproduce the issue again on the CI (after adding some log), but couldn't get it to fail for now. I re-ran the failed job here, let's see if it succeeds this time (if so I suggest that we move forward and merge if this is ready...)
@JohanMabille
Do we have a mean to guarantee that? If so this can be done in a future PR.
Sorry I didnt see that comment before. Answer is yes it's already enforced but only at runtime: we throw an exception when a Context
is created from libmambapy
while there is already one instance alive, see https://github.com/mamba-org/mamba/pull/3309/files#diff-b06477fac9b8a278eaf243edbc7dc3c91c14bfde8db0b974ecd6c5e1edf44f8dR676
In
libmambapy
:Context
instance createdContext
instance are created at any time (this only applies to python and will be changed at another time)Context
before using any other functionsContext
, users are able to set aContextOptions
to change the initial behavior, this allows to setContextOptions.enable_logging_and_signal_handling = False
and worksaround https://github.com/mamba-org/mamba/issues/3271