You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IndexError: list index out of range at ._orchestrate ( /app/cerulean_cloud/cloud_run_orchestrator/handler.py:349 )
Happens about 8 times / day.
Our custom code in cerulean-cloud/cerulean_cloud/cloud_function_scene_relevancy/main.py considers the Caspian Sea as a body of water that we want to predict on. That means that Scenes touching the Caspian are passed into the orchestrator.
However, the code that determines which tiles to pass into the predict endpoint uses globe.is_ocean(), which is 3rd party code that excludes the Caspian. This results in a zero-length list of tiles, which is a case that is not handled gracefully, causing this error.
Options for resolution:
Handle the error gracefully. This means the Caspian Sea is not processed.
Remove the Caspian Sea from our scene_relevancy function. This means the Caspian Sea is not processed.
Edit the globe.is_ocean() code to return True for tiles over the Caspian.
Replace the globe.is_ocean() code to use our scene_relevancy function logic, making them consistent.
I prefer option 4.
The text was updated successfully, but these errors were encountered:
IndexError: list index out of range at ._orchestrate ( /app/cerulean_cloud/cloud_run_orchestrator/handler.py:349 )
Happens about 8 times / day.
Our custom code in cerulean-cloud/cerulean_cloud/cloud_function_scene_relevancy/main.py considers the Caspian Sea as a body of water that we want to predict on. That means that Scenes touching the Caspian are passed into the orchestrator.
However, the code that determines which tiles to pass into the predict endpoint uses
globe.is_ocean()
, which is 3rd party code that excludes the Caspian. This results in a zero-length list of tiles, which is a case that is not handled gracefully, causing this error.Options for resolution:
globe.is_ocean()
code to returnTrue
for tiles over the Caspian.globe.is_ocean()
code to use our scene_relevancy function logic, making them consistent.I prefer option 4.
The text was updated successfully, but these errors were encountered: