-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create DATA_DIR after importing config (#4143)
Delay creating DATA_DIR until config is fully imported. This allows superset_config.py to override DATA_DIR before superset attempts to create it in a potentially unwriteable location.
- Loading branch information
1 parent
3720509
commit ef06a9d
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ef06a9d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this code thread safe? I'm running Superset via Gunicon and specifying 3 threads. I've seen a
FileExistsError
in the logs - it seems that it might be trying to create the.superset
file, but is failing to do so as the file already exists.