Skip to content

Commit

Permalink
tests d'acceleration
Browse files Browse the repository at this point in the history
subprocess est décrit comme lent dans certains cas. Les ralentissements récents sont étranges
  • Loading branch information
Patent2net committed Jul 30, 2021
1 parent 6dcbb22 commit 49b6cd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Patent2Net/scripts/run_spliter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def main():
dateDeb = get_data_spliter_start_date(directory)

if dateDeb == None:
dateDeb=1800 #print("Vous devez préciser la date de début pour découper la requete")
dateDeb=1900 #print("Vous devez préciser la date de début pour découper la requete")
# return None

targetDirectory = REQUEST_AUTO_FOLDER + directory
Expand Down
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ def process_single(p2n_dir, config):

set_in_progress(p2n_dir)
set_state(p2n_dir, "P2N_RUN")
p = Popen(['p2n', 'run', config])
p = Popen(['p2n', 'run', config], close_fds = False)

def process_multi(p2n_dir, target_path):
print("PROGRESS MULTI: " + p2n_dir)

set_in_progress(p2n_dir)
set_state(p2n_dir, "SPLITER_RUN")
delete_data_to_be_found(p2n_dir)
p = Popen(['python', 'Patent2Net/scripts/update_to_be_found.py', target_path])
p = Popen(['python', 'Patent2Net/scripts/update_to_be_found.py', target_path], close_fds = False)



Expand Down Expand Up @@ -342,7 +342,7 @@ def split_request(p2n_dir):
if to_be_found["need_spliter"]:
set_data_spliter_start_date(p2n_dir, int(date))

Popen(['python', 'Patent2Net/scripts/start_auto.py', target_path])
Popen(['python', 'Patent2Net/scripts/start_auto.py', target_path], close_fds = False)

return get_success_response("Spliter running", {})

Expand Down

0 comments on commit 49b6cd3

Please sign in to comment.