famous-businessperson-24711
08/30/2022, 8:41 PMonemodel.get_assumptions.base_prices
but it registered as `onemodel.models.annotations.wf.onemodel.models.annotations.onemodel.get_assumptions.base_prices`*.* Any ideas? i'm guessing something around tracked instance is injecting this?thankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/30/2022, 8:47 PMfamous-businessperson-24711
08/30/2022, 8:48 PMfamous-businessperson-24711
08/30/2022, 8:51 PMthankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/30/2022, 9:19 PMthankful-minister-83577
famous-businessperson-24711
08/30/2022, 9:20 PMfamous-businessperson-24711
08/30/2022, 9:22 PMthankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/30/2022, 11:15 PMthankful-minister-83577
famous-businessperson-24711
08/30/2022, 11:15 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/30/2022, 11:16 PMfamous-businessperson-24711
08/30/2022, 11:17 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/31/2022, 2:42 AMfamous-businessperson-24711
08/31/2022, 2:43 AMfamous-businessperson-24711
08/31/2022, 3:02 AMfamous-businessperson-24711
08/31/2022, 3:32 AMfamous-businessperson-24711
08/31/2022, 4:11 PMctx = FlyteContextManager.current_context()
state = ctx.compilation_state.with_params("", resolver=_resolver)
with FlyteContextManager.with_context(ctx.with_compilation_state(state)):
task = cls._Task(assumption_name)
But i'm unclear what the intended behavior is ie why does the task contstructor ignore the passed resolver in favor of something in the global contextfamous-businessperson-24711
08/31/2022, 4:12 PMfreezing-airport-6809
freezing-airport-6809
famous-businessperson-24711
08/31/2022, 4:14 PMfamous-businessperson-24711
08/31/2022, 4:15 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/31/2022, 4:17 PMthankful-minister-83577
famous-businessperson-24711
08/31/2022, 4:17 PMfamous-businessperson-24711
08/31/2022, 4:18 PMthankful-minister-83577
thankful-minister-83577
def test_dwild():
x = BasePricesSchema.name
print(x)
Assumptions.get(version_id="abc", assumption=x)
@task
def t2(pdf: BasePricesSchema) -> int:
return len(pdf)
@workflow
def wf(version_id: str) -> int:
bp = Assumptions.get(version_id=version_id, assumption=BasePricesSchema.name)
return t2(pdf=bp)
this test produces the wrong name.thankful-minister-83577
thankful-minister-83577
def test_dwild():
x = BasePricesSchema.name
print(x)
Assumptions.get(version_id="abc", assumption=x)
# @task
# def t2(pdf: BasePricesSchema) -> int:
# return len(pdf)
#
#
# @workflow
# def wf(version_id: str) -> int:
# bp = Assumptions.get(version_id=version_id, assumption=BasePricesSchema.name)
# return t2(pdf=bp)
famous-businessperson-24711
08/31/2022, 4:19 PMthankful-minister-83577
famous-businessperson-24711
08/31/2022, 4:20 PMfamous-businessperson-24711
08/31/2022, 4:23 PMthankful-minister-83577
thankful-minister-83577
famous-businessperson-24711
08/31/2022, 4:42 PM