Skip to content

Commit

Permalink
Update constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel committed Feb 13, 2024
1 parent de260b4 commit d37f1ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/transfer-progress/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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):
Expand Down

0 comments on commit d37f1ec

Please sign in to comment.