-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GFMAP Job Manager more robust and persistant #96
Comments
Whenever a crash happens from the user-code, the GFMAP manager loses it's stac collection progress as it is only written whenever the manager finishes it's jobs. One temporary way of tackling that would be to simply add a try/except clause as such: try:
manager.run_jobs(job_df, create_datacube_optical, tracking_df_path)
except Exception as e:
_pipeline_log.error("Error during the job execution: %s", e)
finally:
manager.create_stac(constellation='sentinel2', item_assets={"auxiliary": AUXILIARY}) This should in-theory save only fully initialized STAC items (crashing points should be considered from the self._root_collection.add_items(job_items) @VincentVerelst However I was thinking that it would be maybe better to call manager = GFMAPJobManager(...)
manager.setup_stac(constellation='sentinel2', item_assets={'auxiliary': AUXILIARY})
manager.run_jobs(...) # Will can _create_stac internally Tell me what do you think 😄 |
@GriffinBabe, sounds like a good idea! I don't see any benefit in the user having to call |
It can happen that the GFMAPJobManager crashes. Not necessarily due to errors on gfmap side, but also from bad user code in post-job actions.
MultiBackendJobManager
behavior.At the moment, persistence is done through the
job_tracking.csv
file and the base logic in theMultiBackendJobManager
https://github.com/Open-EO/openeo-python-client/blob/master/openeo/extra/job_management.py#L32
The text was updated successfully, but these errors were encountered: