Skip to content

Connection not die after kill signal. #179

@instasck

Description

@instasck

I used to have the following code:
run.py

from tendo import singleton
me = singleton.SingleInstance(lockfile='running.lock')  # will sys.exit(-1) if other instance is running

 validated_profiles_queue = persistqueue.SQLiteQueue(
        os.path.join(Settings.database_location_path, 'valid_users_q'),
        auto_commit=True)

And some other process sent an kill for popen(run.py)
the process was still in memory since I used the singleton and the file was locked forever.
The issue was persistqueue.SQLiteQueue was not terminated .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions