Marco Barbero Mota
05/17/2023, 4:42 PM.pkl
file. The result is a dictionary with two elements (two arrays).
@task(cache_key_fn=cache_file_based_fn,
persist_result=True, result_storage=LocalFileSystem(basepath=settings.main_dir+'/results'),
result_storage_key=settings.main_task_file,
result_serializer="pickle",
cache_result_in_memory=False)
Json is not supported because narrays cant be encoded with JSON. Pickle is fine with me but when I try to open the pickle file that was generated I get the following error: UnpicklingError: invalid load key, '{'.
Any clue why this is happening?
just FYI:
settings.main_task_file = 'results.pkl'