We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7fb193 commit 31ca603Copy full SHA for 31ca603
main.py
@@ -185,7 +185,13 @@ def prompt_worker(q, server_instance):
185
186
current_time = time.perf_counter()
187
execution_time = current_time - execution_start_time
188
- logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
+
189
+ # Log Time in a more readable way after 10 minutes
190
+ if execution_time > 600:
191
+ execution_time = time.strftime("%H:%M:%S", time.gmtime(execution_time))
192
+ logging.info(f"Prompt executed in {execution_time}")
193
+ else:
194
+ logging.info("Prompt executed in {:.2f} seconds".format(execution_time))
195
196
flags = q.get_flags()
197
free_memory = flags.get("free_memory", False)
0 commit comments