摘要: from django.shortcuts import HttpResponse import psutil from .models.first import func from multiprocessing import Process def index(request): n = 888 阅读全文
posted @ 2022-04-23 20:24 CrossPython 阅读(70) 评论(0) 推荐(0)
摘要: celery Redis Queue 只需使用一个线程。 import threading t = threading.Thread(target=long_process, args=args, kwargs=kwargs) t.setDaemon(True) t.start() return H 阅读全文
posted @ 2022-04-23 14:52 CrossPython 阅读(633) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-04-23 12:17 CrossPython 阅读(22) 评论(0) 推荐(0)