Skip to content

Commit

Permalink
fix: cache tasks args (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry authored Nov 8, 2024
1 parent dbd2417 commit 68da17c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/cache_test_rollups.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_query(with_end: bool) -> str:


class CacheTestRollupsTask(BaseCodecovTask, name=cache_test_rollups_task_name):
def run_impl(self, *, repoid, branch, **kwargs):
def run_impl(self, _db_session, repoid: int, branch: str, **kwargs):
redis_conn = get_redis_connection()
try:
with redis_conn.lock(
Expand Down
4 changes: 3 additions & 1 deletion tasks/cache_test_rollups_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
class CacheTestRollupsRedisTask(
BaseCodecovTask, name=cache_test_rollups_redis_task_name
):
def run_impl(self, *, repoid: int, branch: str, **kwargs) -> dict[str, bool]:
def run_impl(
self, _db_session, repoid: int, branch: str, **kwargs
) -> dict[str, bool]:
redis_conn = get_redis_connection()
try:
with redis_conn.lock(
Expand Down

0 comments on commit 68da17c

Please sign in to comment.