Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Runs with dynamically predefined thread names are sticks #106

Open
boris-becker-p opened this issue Oct 31, 2021 · 0 comments
Open

Runs with dynamically predefined thread names are sticks #106

boris-becker-p opened this issue Oct 31, 2021 · 0 comments

Comments

@boris-becker-p
Copy link

boris-becker-p commented Oct 31, 2021

I would like to set thread name dynamically like :

pytest_parallel/__init__.py
.....
import time 

class ThreadWorker(threading.Thread):
    def __init__(self, queue, session, errors):
        _name = "Thread_" + str(time.time())
        threading.Thread.__init__(self, name=_name)
        self.queue = queue
        self.session = session
        self.errors = errors
.....

But it is always stucks on Ubuntu. What is the right way to set the thread name? Can you help please?

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

No branches or pull requests

1 participant