Spaces:
Running
Running
Update src/app_job_copy_1.py
Browse files- src/app_job_copy_1.py +3 -2
src/app_job_copy_1.py
CHANGED
@@ -415,8 +415,6 @@ def display_job_selection(jobs_df, candidates_df, sh):
|
|
415 |
worksheet_exists = False
|
416 |
existing_candidates_from_sheet = []
|
417 |
try:
|
418 |
-
with st.spinner("Checking for Ideal Candidates..."):
|
419 |
-
time .sleep(20) # Simulate some delay for checking
|
420 |
cand_ws = sh.worksheet(sheet_name)
|
421 |
worksheet_exists = True
|
422 |
data = cand_ws.get_all_values()
|
@@ -443,6 +441,7 @@ def display_job_selection(jobs_df, candidates_df, sh):
|
|
443 |
if st.session_state[job_is_processing_key]:
|
444 |
if st.button("STOP Processing", key=f"stop_btn_{selected_job_index}"):
|
445 |
st.session_state.stop_processing_flag = True
|
|
|
446 |
st.warning("Stop request sent. Processing will halt shortly.")
|
447 |
|
448 |
# Processing
|
@@ -558,7 +557,9 @@ def display_job_selection(jobs_df, candidates_df, sh):
|
|
558 |
st.session_state[job_processed_key] = False
|
559 |
st.session_state.pop(job_is_processing_key, None)
|
560 |
st.session_state.Selected_Candidates.pop(selected_job_index, None)
|
|
|
561 |
try: sh.worksheet(sheet_name).clear()
|
|
|
562 |
except: pass
|
563 |
st.rerun()
|
564 |
|
|
|
415 |
worksheet_exists = False
|
416 |
existing_candidates_from_sheet = []
|
417 |
try:
|
|
|
|
|
418 |
cand_ws = sh.worksheet(sheet_name)
|
419 |
worksheet_exists = True
|
420 |
data = cand_ws.get_all_values()
|
|
|
441 |
if st.session_state[job_is_processing_key]:
|
442 |
if st.button("STOP Processing", key=f"stop_btn_{selected_job_index}"):
|
443 |
st.session_state.stop_processing_flag = True
|
444 |
+
st.cache_data.clear()
|
445 |
st.warning("Stop request sent. Processing will halt shortly.")
|
446 |
|
447 |
# Processing
|
|
|
557 |
st.session_state[job_processed_key] = False
|
558 |
st.session_state.pop(job_is_processing_key, None)
|
559 |
st.session_state.Selected_Candidates.pop(selected_job_index, None)
|
560 |
+
st.cache_data.clear()
|
561 |
try: sh.worksheet(sheet_name).clear()
|
562 |
+
|
563 |
except: pass
|
564 |
st.rerun()
|
565 |
|