Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection not die after kill signal. #179

Open
instasck opened this issue Feb 6, 2022 · 1 comment
Open

Connection not die after kill signal. #179

instasck opened this issue Feb 6, 2022 · 1 comment

Comments

@instasck
Copy link

instasck commented Feb 6, 2022

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 .

@peter-wangxu
Copy link
Owner

Was the run.py killed successfully? it's weird that the process was still in memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants