14 lines
455 B
Python
14 lines
455 B
Python
#!/usr/bin/env python
|
|
|
|
# This script adds access to the Django env and settings in the default rqscheduler
|
|
# implementation. This is required for correct work with CVAT queue settings and
|
|
# their access options such as login and password.
|
|
|
|
from rq_scheduler.scripts import rqscheduler
|
|
|
|
# Required to initialize Django settings correctly
|
|
from cvat.asgi import application # pylint: disable=unused-import
|
|
|
|
if __name__ == "__main__":
|
|
rqscheduler.main()
|