How to implement long polling with Django Apscheduler?
Really need help here.
I'm trying to implement long polling with React as frontend and Django as backend. The plan right now is React will call the api endpoint, and wait till there result for it. The issue is, the function is trigger by apscheduler, but I have no idea on how to pass the return value out. I tried with apscheduler listener, but it only get the JobEvent itself, not the return value. I have think of put the value in request session, but same idea, since there no request passed in, how should I return or pass the value to session?
I'm open to any solution, if there any other package allow me to schedule a weekly job and pass value as long polling.
Much appreciate!