Skip to content

Commit

Permalink
fix: bug with new freshness props
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmogBaku committed Feb 2, 2023
1 parent 0f869ab commit d10b880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions labsdk/raptor/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ def decorator(func):
spec.labels = options['labels']

if 'freshness' in options:
spec.freshness = options['freshness']['target']
spec.staleness = options['freshness']['invalid_after']
spec.timeout = options['freshness']['latency_sla']
spec.freshness = options['freshness']['max_age']
spec.staleness = options['freshness']['max_stale']
spec.timeout = options['freshness']['timeout']

if spec.freshness is None or spec.staleness is None:
raise Exception('You must specify freshness')
Expand Down

0 comments on commit d10b880

Please sign in to comment.