Skip to content

Commit

Permalink
feature: 可观测建设
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Oct 7, 2023
1 parent 904c0b5 commit 5d75e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/node_man/tools/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from apps.node_man import constants, models
from apps.utils import basic
from apps.utils.local import (
get_request_app_code_or_local_app_code,
get_request_username,
get_request_username_or_local_app_code,
)
from common.api import NodeApi

Expand Down Expand Up @@ -381,7 +381,7 @@ def create_job(
statistics=statistics or {},
error_hosts=error_hosts or [],
created_by=get_request_username(),
from_system=get_request_username_or_local_app_code(),
from_system=get_request_app_code_or_local_app_code(),
)

return {"job_id": job.id, "job_url": cls.get_job_url(job.id)}
Expand Down

0 comments on commit 5d75e06

Please sign in to comment.