Skip to content

✨ feat: add pod status checking to distinguish pending vs running jobs#51

Merged
bglar merged 30 commits into
mainfrom
feat/check-pod-phase
May 12, 2026
Merged

✨ feat: add pod status checking to distinguish pending vs running jobs#51
bglar merged 30 commits into
mainfrom
feat/check-pod-phase

Conversation

@fMurugi
Copy link
Copy Markdown
Contributor

@fMurugi fMurugi commented Apr 28, 2026

Summary

Related Issue (optional)

How to test this PR?

Screenshots / Logs (optional)

Checklist

  • This PR targets the main branch
  • I have added or updated relevant docs.
  • I have not included any secrets or credentials.
  • Linting and formatting checks pass.

fMurugi added 17 commits April 28, 2026 15:37
- Extracted Celery and direct submission logic into helper functions.
- Fixed a blocking bug by offloading Celery's  to a thread pool executor.
- Normalized  generation to ensure consistent returns on failure.
- Improved readability and maintainability by simplifying the status mapping logic.
Avoid blocking the event loop while waiting for Celery response timeout.
@fMurugi fMurugi marked this pull request as ready for review April 30, 2026 09:32
bedwards-ibm
bedwards-ibm previously approved these changes Apr 30, 2026
Copy link
Copy Markdown
Contributor

@bedwards-ibm bedwards-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bglar bglar changed the title ✨ feat: add pod status checking to distinfuish pending vs running jobs ✨ feat: add pod status checking to distinguish pending vs running jobs May 4, 2026
@bglar
Copy link
Copy Markdown
Contributor

bglar commented May 5, 2026

Deploying this to an openshift cluster to test...

Comment thread gfmstudio/fine_tuning/core/kubernetes.py Outdated
Comment thread gfmstudio/fine_tuning/core/kubernetes.py Outdated
Copy link
Copy Markdown
Contributor

@bglar bglar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fMurugi use black and ruff to format changes introduced

Example for the gfmstudio/fine_tuning/core/kubernetes.py file:

black gfmstudio/fine_tuning/core/kubernetes.py && ruff check --select I --fix gfmstudio/fine_tuning/core/kubernetes.py

Comment thread gfmstudio/fine_tuning/core/kubernetes.py Outdated
Comment thread gfmstudio/fine_tuning/core/kubernetes.py
@bglar bglar merged commit 04c89b0 into main May 12, 2026
2 checks passed
@bglar bglar deleted the feat/check-pod-phase branch May 12, 2026 08:21
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.

5 participants