mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-20 13:33:46 +00:00
Log redirection, service side (#1727)
* Setting the service side of the log management - a log is created or reused when e create a job - when scheduling the task we send the log location to the agent The expected log structure looks liek {fuzzContainer}/logs/{job_id}/{task_id}/{machine_id}/1.log * regenerate doces * including job_id in the container name * regenerating docs removing bad doc file
This commit is contained in:
@ -14,6 +14,7 @@ from pydantic import BaseModel
|
||||
|
||||
from ..azure.containers import blob_exists, get_container_sas_url
|
||||
from ..azure.storage import StorageType
|
||||
from ..jobs import Job
|
||||
from ..workers.pools import Pool
|
||||
from .config import build_task_config, get_setup_container
|
||||
from .main import Task
|
||||
@ -116,7 +117,11 @@ def build_work_unit(task: Task) -> Optional[Tuple[BucketConfig, WorkUnit]]:
|
||||
|
||||
logging.info("scheduling task: %s", task.task_id)
|
||||
|
||||
task_config = build_task_config(task.job_id, task.task_id, task.config)
|
||||
job = Job.get(task.job_id)
|
||||
if not job:
|
||||
raise Exception(f"invalid job_id {task.job_id} for task {task.task_id}")
|
||||
|
||||
task_config = build_task_config(job, task)
|
||||
|
||||
setup_container = get_setup_container(task.config)
|
||||
setup_script = None
|
||||
|
Reference in New Issue
Block a user