created tasks for grade 4

This commit is contained in:
2026-11-19 19:09:19 +03:00
parent 52be9d282b
commit 27a3a6895f
25 changed files with 1492 additions and 651 deletions
+3 -1
View File
@@ -179,7 +179,7 @@ def crash(client, actor, chat, mode):
)
def retry_replay(client, actor, chat, permanent, on_failed=None):
def retry_replay(client, actor, chat, permanent, on_failed=None, on_queued=None):
name = "messenger-retry-fault-" + uuid4().hex
samples = []
configuration = ComposeProject().config["services"]["worker"]["environment"]
@@ -188,6 +188,8 @@ def retry_replay(client, actor, chat, permanent, on_failed=None):
try:
require_compose("stop", "worker")
attachment, original = client.attachment(actor, chat)
if on_queued is not None:
on_queued(attachment)
mode = "fail-permanent" if permanent else "fail-transient"
require_compose(
"run",