Skip to content

feat(memify): add status endpoints for async runs#1

Open
slime-turing wants to merge 3 commits intomainfrom
memify-status-api-clean
Open

feat(memify): add status endpoints for async runs#1
slime-turing wants to merge 3 commits intomainfrom
memify-status-api-clean

Conversation

@slime-turing
Copy link
Copy Markdown
Owner

@slime-turing slime-turing commented Mar 9, 2026

Summary

This PR adds a small status API for async memify runs.

You can now:

  • call GET /api/v1/memify/status to fetch the latest memify run for a dataset
  • call GET /api/v1/memify/status/{pipeline_run_id} to track one specific background run

It also includes focused API tests, a short example, and docs that explain why pipeline_run_id is the right polling key for async memify.

A couple of details worth calling out

While working through this, I tightened two things that seemed important before opening the PR:

  • the status endpoint no longer returns raw persisted input payload from run_info.data
  • name-based dataset lookups now fail fast if more than one readable dataset shares the same name, and ask the caller to retry with dataset_id

Why this shape

The endpoint is meant to be cheap to poll and predictable to use:

  • it reuses the existing pipeline run lookup path
  • it keeps the exact-run flow centered on pipeline_run_id
  • it avoids returning unnecessary payload data in the status response

Validation

I checked this with focused unit tests and with a live HTTP probe against the branch build.

Add dataset-scoped and pipeline_run_id-scoped memify status endpoints for asynchronous memify execution.

Include focused API tests, README/docs rationale for pipeline_run_id usage, and a small HTTP example for polling memify status.
@slime-turing slime-turing added enhancement New feature or request documentation Improvements or additions to documentation labels Mar 9, 2026
@slime-turing slime-turing marked this pull request as ready for review March 9, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant