I am trying to retrieve the parameters i passed to my job in rq scheduler while scheduling like: args passed, Function name, and other things
list_of_jobs=scheduler.get_jobs()
# print("jobs lsit",list_of_jobs)
for job in list_of_jobs:
print(job.args)
Traceback (most recent call last):
raise AppRegistryNotReady("Models aren't loaded yet.")
django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
ile "/home/munz/.local/lib/python3.7/site-packages/rq/job.py", line 266, in _deserialize_data
raise DeserializationError() from e
rq.exceptions.DeserializationError