Selenium thread only works once

I have a dockerized Django app with some threads. Those threads perform periodic tasks, and use Selenium and Beautiful Soup to scrap data and save it to the database.

When initializing one thread, the first scrap goes well, data is checked and the function sleeps. However, when the sleep finishes the next scrap isn't performed. This is the thread head code:

def thread1():
    time_mark = 0
    while True:
        print('Thread1 START')
        op = funct_scrap(thread1_url)
        ...
        sleep(60)

The funct_scrap scrapes the web using Selenium, works for the first time but it stops after that. I'd need it to check periodically. In development server works well, but now on Docker there is this problem. What's going on?

Back to Top