Get task status
I have a question concerning task status:
I want to show a list of all the synthetic datasets to the User with the status of generating (as it can take a wile, User can see when it is Finished).
Currently, we have 1 endpoint to make a fit-generate and 1 endpoint to list all the synthetic datasets. Inside the fit-generate endpoint I can call a
result.status (just after I call .
predict ) and get a "Pending", "SUCCESS" etc.
But how can I get this status inside the list datasets, when all that I can do is just call:
Can I store the status data inside the created metadata before generating?
synth_meta_store = om.datasets.get(meta_synthetic_dataset_store_name) synth_meta_store['task_result'] = task_result.status om.datasets.put(synth_meta_store, meta_synthetic_dataset_store_name, append=False)
Or is there another way?