Skip to content

Commit 48ef1aa

Browse files
committed
make sure to set redis key so flakes are processed in ta finisher
1 parent 56cb135 commit 48ef1aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/ta_finisher.py

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from helpers.string import EscapeEnum, Replacement, StringEscaper, shorten_file_paths
2525
from services.activation import activate_user
2626
from services.lock_manager import LockManager, LockRetry, LockType
27+
from services.redis import get_redis_connection
2728
from services.repository import (
2829
EnrichedPull,
2930
TorngitBaseAdapter,
@@ -83,8 +84,11 @@ def queue_optional_tasks(
8384
commit_yaml: UserYaml,
8485
branch: str | None,
8586
):
87+
redis_client = get_redis_connection()
88+
8689
if should_do_flaky_detection(repo, commit_yaml):
8790
if commit.merged is True or branch == repo.branch:
91+
redis_client.set(f"flake_uploads:{repo.repoid}", 0)
8892
process_flakes_task_sig = process_flakes_task.s(
8993
repo_id=repo.repoid,
9094
commit_id=commit.commitid,

0 commit comments

Comments
 (0)