as
01/04/2021, 1:02 PMtask(get_data,
result=LocalResult(serializer=JSONSerializer(), validators=lambda : False),
target=join(p.data_path, "data.json"),
checkpoint=True,
)
If a target file already exist here, is the task run anyway because the validator returns False?
What I want to achieve is to use a kind of "force_run" variable in a result validator (eg. defined in a user config) that forces to evaluate a task, even if there is already a result at the target location.Equipe AI HOC
01/04/2021, 2:52 PMvalidator
argument in the Result
constructor is what you want. I don't think it is about cache. Have it worked for you?as
01/04/2021, 3:00 PMKyle Moon-Wright
01/04/2021, 6:55 PMlocation
kwarg might be better. Additionally, this article goes into result targeting.as
01/05/2021, 9:38 AMKyle Moon-Wright
01/05/2021, 4:53 PM