Revision 571e62218196c788a051202db34d571e0e67c18b authored by Maria Khrustaleva on 06 December 2023, 15:46:31 UTC, committed by GitHub on 06 December 2023, 15:46:31 UTC
Since rq Job.fetch_many (https://github.com/rq/rq/blob/d11094af95188c197a5e11b1c4fa05b000485370/rq/job.py#L604) can return `None` we must explicitly check that job exists.
1 parent 67b80c2
manage.py
#!/usr/bin/env python3
# Copyright (C) 2018-2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cvat.settings.development")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
Computing file changes ...