Skip to content
Snippets Groups Projects
Commit 5f241b3c authored by istmxrein's avatar istmxrein
Browse files

assign reservations before calling custom callback

parent fbd242c1
No related branches found
No related tags found
No related merge requests found
......@@ -316,9 +316,10 @@ def restart_reservation_consumer(ids: List[int], callback: Callable = None):
def res_event_callback(res: Reservation):
logger.info(f'Received Reservation for cube {res.cube_id}; {res}')
cube_reservations[res.cube_id] = res
if custom_callback:
custom_callback(res)
cube_reservations[res.cube_id] = res
if not res_thread:
res_thread = ReservationConsumer(cubes=ids, callback=res_event_callback)
......
......@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='pilab',
version='3.2.1',
version='3.3.1',
description='Shared-Libs for the pi-lab microservices',
url='https://code.fbi.h-da.de/api/v4/projects/27896/packages/pypi/pilab',
author='Max Reinheimer',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment