best way to display static python monitoring thread output

16 views
Skip to first unread message

Phil Kauffman

unread,
Mar 23, 2020, 11:44:33 AM3/23/20
to Django users
Hello,

Wondering if I can bounce my problem off some folks for an idea of how to solve it.

My colleague and I are trying to pull in a python Rest API library for a piece of software. Rather than have end users run scripts we wanted to make a basic gui for them. I've got the basic tests working fine but one area we're lacking is the monitoring status.

I'm struggling conceptually with how to handle a static monitoring thread that queries an API server that's running processes that I need to know the status of. 

The API server doesn't support stateful sessions for streaming data so I have a python monitoring thread that periodically re-queries the API gateway for test status. Works great from a CLI, but no sure how to handle it in Django. 

If anyone can provide some insight into a viable method for this please let me know. 

Thanks

Motaz Hejaze

unread,
Mar 23, 2020, 8:37:46 PM3/23/20
to django...@googlegroups.com
Dont know what you mean perfectly , but i think you can make a javascript function that ( fetch() ) the api periodically maune using ( setinterval() ) function ...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e2cfd736-4238-4b1e-a413-046185b3d6c5%40googlegroups.com.

Motaz Hejaze

unread,
Mar 23, 2020, 8:38:10 PM3/23/20
to django...@googlegroups.com
After that you can update the dom with the new result
Reply all
Reply to author
Forward
0 new messages