def handle_experiment_job_log(experiment_name, experiment_uuid, log_lines): if not Experiment.objects.filter(uuid=experiment_uuid).exists(): return logger.debug('handling log event for %s', experiment_uuid) safe_log_experiment_job(experiment_name=experiment_name, log_lines=log_lines)
def handle_build_job_logs(job_uuid, job_name, log_lines): if not BuildJob.objects.filter(uuid=job_uuid).exists(): return logger.debug('handling log event for %s', job_name) safe_log_job(job_name=job_name, log_lines=log_lines, temp=False, append=True)
def handle_experiment_job_log(experiment_name: str, experiment_uuid: str, log_lines: Optional[Union[str, Iterable[str]]], temp: bool = True) -> None: if not Experiment.objects.filter(uuid=experiment_uuid).exists(): return logger.debug('handling log event for %s', experiment_uuid) safe_log_experiment(experiment_name=experiment_name, log_lines=log_lines, temp=temp, append=True)
def handle_build_job_logs(job_uuid: str, job_name: str, log_lines: Optional[Union[str, Iterable[str]]], temp: bool = True) -> None: if not BuildJob.objects.filter(uuid=job_uuid).exists(): return logger.debug('handling log event for %s', job_name) safe_log_job(job_name=job_name, log_lines=log_lines, temp=temp, append=True)
def handle_job_logs(job_uuid, job_name, log_lines): if not Job.objects.filter(uuid=job_uuid).exists(): return logger.debug('handling log event for %s', job_name) safe_log_job(job_name=job_name, log_lines=log_lines)