def check_job_status(self, job_id):
        """Check the status of a job by polling the Infoblox API.

        Args:
            job_id (str): The ID of the job to check the status for.

        Returns:
            bool: True if the job status is successfully retrieved.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            url = consts.BASE_URL.format(consts.DOSSIER_ENDPOINTS["Status"]).format(job_id)
            status = "pending"
            secs = 0
            while status == "pending":
                response_json = self.make_dossier_call(url, method="GET", headers=self.headers)
                status = response_json.get("status")
                applogger.info(
                    self.log_format.format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        "Job is still pending, time = {} Secs".format(secs),
                    )
                )
                sleep_time = randrange(2, 10)
                secs += sleep_time
                time.sleep(sleep_time)
            applogger.info(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    "Job status success",
                )
            )
            return True
        except InfobloxException:
            raise InfobloxException()
        except Exception as error:
            applogger.error(
                self.log_format.format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    "Unexpected error : Error-{}".format(error),
                )
            )
            raise InfobloxException()
Check the status of a job by polling the Infoblox API.

        Args:
            job_id (str): The ID of the job to check the status for.

        Returns:
            bool: True if the job status is successfully retrieved.
        
Solutions/Infoblox/Data Connectors/InfobloxCloudDataConnector/InfobloxDossierOrchestrator/create_dossier_job.py