philipuvarov opened a new issue, #29831:
URL: https://github.com/apache/superset/issues/29831
### Bug description
Hey! This is probably on weirder side of things, but I wanted to create a
job in `superset_config.py` to update some things and i have noticed that even
though I am doing thing in a separate thread, it still hangs the whole app.
So basically if I add something like this in `superset_config.py`
```
In `superset_config.py` add:
```
import time
from threading import Thread
def _updates():
time.sleep(1800)
data_updates = Thread(target=_updates)
data_updates.start()
```
the app freezes until `sleep` finishes. Is this an expected behavior?
### How to reproduce the bug
In `superset_config.py` add:
```
import time
from threading import Thread
def _updates():
time.sleep(1800)
data_updates = Thread(target=_updates)
data_updates.start()
```
App becomes unresponsive until `sleep` finishes even though it is executed
on another thread.
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [X] I have checked Superset's logs for errors and if I found a relevant
Python stacktrace, I included it here as text in the "additional context"
section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]