From 47d8e7daf96bea2ba5b7d2dbad6945b1bae1f1eb Mon Sep 17 00:00:00 2001 From: pxc Date: Thu, 24 Apr 2025 14:56:48 +0800 Subject: [PATCH] fix task --- .github/workflows/unittest.yaml | 2 -- trinity/common/task.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/unittest.yaml b/.github/workflows/unittest.yaml index adc172fd44..55a698781d 100644 --- a/.github/workflows/unittest.yaml +++ b/.github/workflows/unittest.yaml @@ -23,8 +23,6 @@ jobs: - name: Setup docker compose working-directory: trinity-${{ github.run_id }}/.github/workflows/docker run: | - export UID=$(id -u) - export GID=$(id -g) docker compose up -d sleep 5s diff --git a/trinity/common/task.py b/trinity/common/task.py index 4a3f3a39c5..e9f88724fb 100644 --- a/trinity/common/task.py +++ b/trinity/common/task.py @@ -175,7 +175,7 @@ def index(self) -> int: @property def epoch(self) -> int: """Get the current epoch.""" - return self._index + return self._epoch def __next__(self) -> Task: """Iterate through the tasks in the taskset."""