mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-04-24 19:38:23 +02:00
Increase task timeout from 15 mins to 30 mins
This commit is contained in:
parent
5c95bcc65d
commit
01c7712961
@ -7,7 +7,7 @@ Notes:
|
|||||||
import json
|
import json
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
TASK_TTL = 15 * 60 # seconds, Discard last session's task timeout
|
TASK_TTL = 30 * 60 # seconds, Discard last session's task timeout
|
||||||
|
|
||||||
import queue
|
import queue
|
||||||
import threading
|
import threading
|
||||||
@ -398,8 +398,8 @@ def get_devices():
|
|||||||
return {"name": device_manager.get_processor_name()}
|
return {"name": device_manager.get_processor_name()}
|
||||||
|
|
||||||
mem_free, mem_total = torch.cuda.mem_get_info(device)
|
mem_free, mem_total = torch.cuda.mem_get_info(device)
|
||||||
mem_free /= float(10 ** 9)
|
mem_free /= float(10**9)
|
||||||
mem_total /= float(10 ** 9)
|
mem_total /= float(10**9)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"name": torch.cuda.get_device_name(device),
|
"name": torch.cuda.get_device_name(device),
|
||||||
|
Loading…
Reference in New Issue
Block a user