File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -229,20 +229,19 @@ def prompt_worker(q, server_instance):
229229 e .execute (item [2 ], prompt_id , extra_data , item [4 ])
230230 need_gc = True
231231
232- current_time = time .perf_counter ()
233- execution_time = current_time - execution_start_time
234-
235232 remove_sensitive = lambda prompt : prompt [:5 ] + prompt [6 :]
236233 q .task_done (item_id ,
237234 e .history_result ,
238235 status = execution .PromptQueue .ExecutionStatus (
239236 status_str = 'success' if e .success else 'error' ,
240237 completed = e .success ,
241- messages = e .status_messages ),
242- process_item = remove_sensitive )
238+ messages = e .status_messages ), process_item = remove_sensitive )
243239 if server_instance .client_id is not None :
244240 server_instance .send_sync ("executing" , {"node" : None , "prompt_id" : prompt_id }, server_instance .client_id )
245241
242+ current_time = time .perf_counter ()
243+ execution_time = current_time - execution_start_time
244+
246245 # Log Time in a more readable way after 10 minutes
247246 if execution_time > 600 :
248247 execution_time = time .strftime ("%H:%M:%S" , time .gmtime (execution_time ))
You can’t perform that action at this time.
0 commit comments