You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Cengal 4.4.0, tested with python 3.11 and 3.10:
Following the shared_objects__example__sender.py, I am doing this:
sso: dict = {"block_1": "TEST"}
# Create shared memory manager
memory = SharedMemory('shared_objects', create=True, size=16 * 1024 ** 3) # 16GB
memory_manager = ASharedMemoryManager(memory)
async with memory_manager as asmm:
print('Sender is ready.')
# Each coroutine should get its own context manager (ASharedMemoryContextManager). Either `asmm` or `ashared_memory_manager` can be used
memory_context_manager: ASharedMemoryContextManager = asmm()
async with memory_context_manager as context_manager:
with MeasureTimeTraceLine('Preparing the shared object and sending it to the receiver') as mt:
sso_mapped: str = context_manager.value.put_message(sso) # by default, for custom classes including dataclass, `sso` is `sso_mapped`
printval('sso', sso)
Running the code with asyncio.run, what happens is that the 16Gs of memory space is allocated, but we never advance past memory_context_manager: ASharedMemoryContextManager = asmm()
Any suggestions / advice on how to trace the cause are welcome!
The text was updated successfully, but these errors were encountered:
Hello,
Using Cengal 4.4.0, tested with python 3.11 and 3.10:
Following the shared_objects__example__sender.py, I am doing this:
Running the code with asyncio.run, what happens is that the 16Gs of memory space is allocated, but we never advance past memory_context_manager: ASharedMemoryContextManager = asmm()
Any suggestions / advice on how to trace the cause are welcome!
The text was updated successfully, but these errors were encountered: