Skip to content

Unable to cancel dl-serve with ctrl + C #212

@renereimann

Description

@renereimann

When running sensor-logger not in detached mode, I can not break the execution of dl-serve using CTRL+C.
When pressing CTRL + C an LOG ERROR is reported:

{'timestamp': '2025-11-13T18:12:56.830981Z', 'endpoint_name': 'pg70_pressure_mbar', 'value_cal': 640.0, 'value_raw': 640.0}
^C[*** LOG ERROR #0175 ***] [2025-11-13 18:12:57] [signal_handler] async log: thread pool doesn't exist anymore [/usr/local/src/scarab/library/utility/signal_handler.cc(370)]

I am running dl-python version 5.1.1 in docker compose. For the test above I started the container with the main process doing sleep 10000 while I connect to the docker container and run dl-serve using PDB
/usr/local/bin/python -m pdb /usr/local/bin/dl-serve -c /root/auth/sensor-logger.yaml -vvv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions