예제 #1
0
파일: logs.py 프로젝트: stefandi94/polyaxon
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)
예제 #2
0
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)
예제 #3
0
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)
예제 #4
0
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)
예제 #5
0
파일: logs.py 프로젝트: stefandi94/polyaxon
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)