-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: search all jobs by asset name or job id #193
Conversation
try: | ||
url = os.getenv("AIND_AIRFLOW_SERVICE_JOBS_URL", "").strip("/") | ||
get_one_job = request.query_params.get("dag_run_id") is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_one_job
was originally created to allow users to retrieve a job based on exact job id. This is not needed anymore since UI enables users to search fully client-side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good for now. There's probably a way to avoid making extra calls when toggling the advanced search and then adding a filter by state. Something that can be implemented later.
closes #180
This PR enables users to search all jobs by asset name or job id.
/api/v1/get_job_status_list?get_all_jobs=true
: get all jobs from airflow that match default or provided status and submit time range