first time posting here so my apologies if something is incorrect.
I am trying to build a simple queue system using Python's inbuilt Queue class in a Django application.
Python Queue Documentation
https://docs.python.org/3/library/queue.html
I think I know how to construct and initialize a queue on site startup so there is only one queue I add jobs to based on this post Execute code when Django starts ONCE only?
However, my problem and question is after constructing a queue on Django site startup how would I grab that queue from my various Django apps in order to add jobs to it in the Views files?
I don't see a way to get the constructed queue. I could construct a queue at the time I want to add a job but then I would run into the issue where each job added would construct its own queue which is not the functionality I want.
so far I have a a queue_construction.py file in the base dir of my django site with some test functions in it and that is working great when I execute it on command line. Now I need to get it working in the Django environment. I do not want to use Celery or any other 3rd party software to do this.
Thanks in advance