Skip to content

STAC manager fixes - #992

Open
HansVRP wants to merge 4 commits into
masterfrom
hv_fix_983_984_STACBASEDJOBMANAGER
Open

HansVRP wants to merge 4 commits into
masterfrom
hv_fix_983_984_STACBASEDJOBMANAGER

Conversation

@HansVRP

@HansVRP HansVRP commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

#983
After a job finishes, the job manager adds new usage columns. Rows that don't have those values end up as NaN. STACAPIJobDatabase.persist() sent the NaN values as JSON, which isn't allowed, so the request failed and no further jobs could run.

STACAPIJobDatabase.item_from() now turns missing values (NaN, NaT, NA) into None, which is sent as JSON null.

#984 the STAC job database labelled each row by its position in the latest query result (0, 1, 2, …), not by its item id. When a job is started in a background thread, the manager remembers that label. In a later cycle the same labels point to different items.

query results are now labelled by STAC item id, which stays the same across queries.; this also required the not_started.loc[i] change since 'job_aaa +1' would result in issues

… stays the same across queries. STACAPIJobDatabase.item_from() now turns missing values (NaN, NaT, NA) into None, which is sent as JSON null.
@HansVRP HansVRP changed the title stac_job_db.py: query results are now labelled by STAC item id, which… STAC manager fixes Dec 2, 2026
@HansVRP
HansVRP marked this pull request as ready for review December 2, 2026 12:47
@HansVRP

HansVRP commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

added also some hardening to ensure unique IDs;

@Pratichhya could you tests this branch on your use-case to see if it resolves the issue/throws a clear error

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant