-
Notifications
You must be signed in to change notification settings - Fork 318
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
List job runs #121
Comments
/ cc @Liorba |
Before I started coding, I wanted to better understand the intent of the issue before using the API definition suggested above. The main way today to get info about current job runs is with this endpoint-- If we want to list the active jobs run for each job when we list all jobs, that might involve some changes to how we represent the If the goal here is to get all the job runs in a namespace, could we instead create an endpoint for that? For example |
It might help to highlight the question we are looking to answer:
So, let's say I have the job
will return the list of runs for
Note that the But, now let's say we wanted to view runs for multiple jobs: The issue does outline (possibly) returning a list of runs when retrieving a job:
My thinking here is that it's more of an optimization for the caller. Maybe we return the last |
continued: I think it would be fine to define the endpoint:
returning a list of run IDs. But to learn more about the job run, the caller would have to make another API call:
|
I like the idea of calling Does this sound like a sensible way to proceed? |
The endpoint
That is, a run ID would encode both the namespace and job version associated with the run instance, but this is very much an internal association maintained by Marquez. I guess I'm not really sure how adding the filters
The call above would return a list of runs, allowing the caller to filter runs by job under a given namespace. What it wouldn't allow you to do is filter runs only by job name, but that's not a feature we have thought about supporting. /cc @sshah-wework @hougs |
Chiming in here, would rather see
Than
since the first is more canonical. the One day, we may want the equivalent lookup via a |
Being added in #633 |
* Fixing the lint toolchain and running the lint configuration. Signed-off-by: Peter Hicks <peter@datakin.com> * Simplifying the readme for the lint system. Signed-off-by: Peter Hicks <peter@datakin.com> Co-authored-by: Peter Hicks <peter@datakin.com>
Signed-off-by: wslulciuc <willy@datakin.com>
Let's support listing job runs. We'll want to update the OpenAPI spec accordingly #100 #104
GET /namespaces/
:namespace
/jobsWe may want to list job runs when fetching a job by name. The endpoint above is not yet finalized, and something we can iterate on (just wanted to capture the functionality).
The text was updated successfully, but these errors were encountered: