Skip to content

Commit

Permalink
Timing issue while checking cpu quota (#2976)
Browse files Browse the repository at this point in the history
* timing issue

* fix pylint"

* undo
  • Loading branch information
nagworld9 committed Nov 13, 2023
1 parent 5840594 commit 5ea6b35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ ENV/

# pyenv
.python-version
.vscode/
.vscode/
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def verify_process_check_on_agent_cgroups():
# [CGroupsException] The agent's cgroup includes unexpected processes: ['[PID: 25826] python3\x00/home/nam/Compute-Runtime-Tux-Pipeline/dungeon_crawler/s']
wait_for_log_message(
"Disabling resource usage monitoring. Reason: Check on cgroups failed:.+The agent's cgroup includes unexpected processes")
if not check_agent_quota_disabled():
disabled: bool = retry_if_false(check_agent_quota_disabled)
if not disabled:
fail("The agent did not disable its CPUQuota: {0}".format(get_agent_cpu_quota()))


Expand Down Expand Up @@ -199,7 +200,8 @@ def verify_throttling_time_check_on_agent_cgroups():
timeout=datetime.timedelta(minutes=10))
wait_for_log_message("Stopped tracking cgroup walinuxagent.service", timeout=datetime.timedelta(minutes=10))
wait_for_log_message("Executing systemctl daemon-reload...", timeout=datetime.timedelta(minutes=5))
if not check_agent_quota_disabled():
disabled: bool = retry_if_false(check_agent_quota_disabled)
if not disabled:
fail("The agent did not disable its CPUQuota: {0}".format(get_agent_cpu_quota()))


Expand Down

0 comments on commit 5ea6b35

Please sign in to comment.