From d37f1eca52be2389f8d1af2b74c882dc2962b787 Mon Sep 17 00:00:00 2001 From: "nieznany.sprawiciel" Date: Tue, 13 Feb 2024 18:42:07 +0100 Subject: [PATCH] Update constraints --- examples/transfer-progress/progress.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/transfer-progress/progress.py b/examples/transfer-progress/progress.py index 4794d5403..99ef6e059 100644 --- a/examples/transfer-progress/progress.py +++ b/examples/transfer-progress/progress.py @@ -88,7 +88,10 @@ def executed(self, event: "yapapi.events.CommandExecuted"): @dataclass class ExamplePayload(_VmPackage): - progress_capability: bool = constraint( + deploy_progress_capability: bool = constraint( + "golem.activity.caps.deploy.report-progress", operator="=", default=True + ) + transfer_progress_capability: bool = constraint( "golem.activity.caps.transfer.report-progress", operator="=", default=True ) @@ -102,7 +105,10 @@ async def get_payload(): min_storage_gib=10.0, ) return ExamplePayload( - image_url=package.image_url, constraints=package.constraints, progress_capability=True + image_url=package.image_url, + constraints=package.constraints, + deploy_progress_capability=True, + transfer_progress_capability=True, ) async def start(self):