File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# limitations under the License.
1515# ===============================================================================
1616import time
17- from threading import Lock
1817from types import SimpleNamespace
1918
2019from pandas import isna
3231)
3332
3433_LOCATION_DF_CACHE = None
35- _LOCATION_DF_LOCK = Lock ()
3634
3735
3836def _get_location_df ():
3937 global _LOCATION_DF_CACHE
38+ # transfer_thing is executed in a session-scoped, non-threaded transfer flow.
39+ # Keep a simple module-level cache and avoid lock complexity here.
4040 if _LOCATION_DF_CACHE is None :
41- with _LOCATION_DF_LOCK :
42- if _LOCATION_DF_CACHE is None :
43- df = read_csv ("Location" )
44- _LOCATION_DF_CACHE = replace_nans (df )
41+ df = read_csv ("Location" )
42+ _LOCATION_DF_CACHE = replace_nans (df )
4543 return _LOCATION_DF_CACHE
4644
4745
You can’t perform that action at this time.
0 commit comments