我使用Django Background Tasks在我的Django应用程序中运行后台任务,这是从Django模型检查是否超过了特定的截止日期。你知道吗
@background(schedule=10000)
def check_deadline(repeat=30000):
# Check if deadline has crossed from DB
# Return the record's title whose deadline has crossed
如果满足条件,则后台任务必须向当前正在查看的任何模板发送消息。我不知道如何从后台任务向模板发送消息。你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐