Skip to content

Attach an output dataset, reference an input dataset, and accept dict params in create_workunit - #570

Merged
leoschwarz merged 4 commits into
mainfrom
feat/workunit-create-executables
Aug 12, 2026
Merged

Attach an output dataset, reference an input dataset, and accept dict params in create_workunit#570
leoschwarz merged 4 commits into
mainfrom
feat/workunit-create-executables

Conversation

@leoschwarz

@leoschwarz leoschwarz commented Jul 31, 2026

Copy link
Copy Markdown
Member
  • create_workunit accepts dataset (name + base64 csv/tsv/parquet), created as the workunit’s output dataset via the existing create_dataset.
  • create_workunit accepts input_dataset_id, referencing an existing dataset as the workunit’s input (inputdatasetid, previously only ever read).
  • params may now be a plain mapping instead of a CreateWorkunitParams; invalid input raises ValidationError before any write.
  • The dataset step runs inside the existing failure cleanup, so a dataset failure marks the workunit failed rather than leaving it available.
  • POST /create/workunit/v1 gains both new fields, inherited via CreateWorkunitRequest.
  • The executables part of this branch moved to Attach executables to a workunit in create_workunit #590, stacked on top of this PR.

🤖 Prepared with assistance from Claude Opus 5 via Claude Code.

@leoschwarz leoschwarz changed the title Attach executables to a workunit in create_workunit Attach executables and a dataset to a workunit in create_workunit Jul 31, 2026
@leoschwarz
leoschwarz force-pushed the feat/workunit-create-executables branch from 77750d5 to 5ce532d Compare August 12, 2026 10:29
@leoschwarz leoschwarz changed the title Attach executables and a dataset to a workunit in create_workunit Attach an output dataset, reference an input dataset, and accept dict params in create_workunit Aug 12, 2026
The eager import tripped the test_lazy_imports guard: importing
bfabric.operations.workunit must not pull in polars for callers that
create no dataset.
…executables

# Conflicts:
#	bfabric/docs/changelog.md
@leoschwarz
leoschwarz marked this pull request as ready for review August 12, 2026 12:44
@leoschwarz
leoschwarz merged commit 7d0cb0f into main Aug 12, 2026
24 checks passed
@leoschwarz
leoschwarz deleted the feat/workunit-create-executables branch August 12, 2026 12:44
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