Skip to content
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: add batch job timeout duration #2824

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Nov 6, 2024

resolves #2812
related PR: lablup/backend.ai#3066

Add batch job timeout duration to the session launcher.
User can select the time unit and input the timeout duration.

How to test:

test endpoint: 10.82.230.49

  1. Modify the support version of batch-timeout in backend.ai-client-esm for testing. (24.09)
  2. Set session type to the batch.
  3. Enable Batch Job Timeout Duration
  • eg
    start command: sleep 20 && echo "hello world"
    timeout: 3s

Checklist:

  • Batch job timeout value remains after refreshing
  • The 'Confirm and Launch' page has the same value if you set the 'Batch job timeout duration'.
  • (API is not implemented yet) Create a new session with batch session timeout option.

Screentshots:
image.png

image.png

image.png

image.png

image.png

Checklist:

  • Documentation
  • Test case: Verify timeout can be enabled/disabled
  • Test case: Confirm time picker accepts valid duration formats
  • Test case: Check default value initialization
  • Test case: Validate timeout enforcement on batch sessions

Copy link

graphite-app bot commented Nov 6, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:M 30~100 LoC label Nov 6, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @agatha197 and the rest of your teammates on Graphite Graphite

@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch from e5bf63c to f2c5d1b Compare November 6, 2024 05:47
@agatha197 agatha197 marked this pull request as draft November 6, 2024 05:48
@agatha197 agatha197 requested a review from yomybaby November 6, 2024 05:48
Copy link

github-actions bot commented Nov 6, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 5.26% 386/7332
🔴 Branches 4.52% 229/5062
🔴 Functions 3.14% 76/2418
🔴 Lines 5.17% 371/7171

Test suite run success

109 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from b082f8a

@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch from f2c5d1b to 2fded01 Compare November 8, 2024 14:16
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization size:XL 500~ LoC and removed size:M 30~100 LoC labels Nov 8, 2024
@agatha197 agatha197 changed the title feat: batch session timeout feat: add batch job timeout duration Nov 8, 2024
@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch 2 times, most recently from 8facaeb to 8c3cb7d Compare November 8, 2024 14:25
@agatha197 agatha197 added the urgency:4 As soon as feasible, implementation is essential. label Nov 8, 2024 — with Graphite App
@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch 2 times, most recently from 70e68bf to 5214926 Compare November 11, 2024 04:24
@github-actions github-actions bot added the area:lib Library and SDK related issue. label Nov 11, 2024
@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch 4 times, most recently from b4b6bbd to e67a827 Compare November 11, 2024 07:24
@agatha197 agatha197 requested a review from fregataa November 11, 2024 07:34
@agatha197 agatha197 marked this pull request as ready for review November 11, 2024 08:09
@agatha197 agatha197 requested a review from ironAiken2 November 12, 2024 14:32
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
@yomybaby yomybaby force-pushed the feature/batch-session-timeout branch from e67a827 to 4b90096 Compare November 14, 2024 09:46
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

I push a commit to apply related to my reviews. LGTM, now!

Copy link

graphite-app bot commented Nov 14, 2024

Merge activity

resolves #2812
related PR: lablup/backend.ai#3066

Add batch job timeout duration to the session launcher.
User can select the time unit and input the timeout duration.

**How to test:**
> test endpoint: 10.82.230.49
1. Modify the support version of `batch-timeout` in `backend.ai-client-esm` for testing. (24.09)
2. Set session type to the batch.
3. Enable `Batch Job Timeout Duration`
  - eg
    start command: sleep 20 && echo \"hello world\"
    timeout: 3s

**Checklist:**
- [ ] Batch job timeout value remains after refreshing
- [ ] The 'Confirm and Launch' page has the same value if you set the 'Batch job timeout duration'.
- [ ] (API is not implemented yet) Create a new session with batch session timeout option.

**Screentshots:**
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/5adbf314-e521-4410-bed8-075124fad6c8.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/c9dd0f12-695e-4960-ba98-9b6371c6a47a.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/4075faa3-a61e-4ce3-833c-c858e6d6b75a.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/600fd8cb-0040-43e4-b8fe-307730d292c0.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/55116de0-e7eb-4ef7-8077-abde8ea73b3b.png)

**Checklist:**

- [ ] Documentation
- [ ] Test case: Verify timeout can be enabled/disabled
- [ ] Test case: Confirm time picker accepts valid duration formats
- [ ] Test case: Check default value initialization
- [ ] Test case: Validate timeout enforcement on batch sessions
@agatha197 agatha197 force-pushed the feature/batch-session-timeout branch from 97b638e to b082f8a Compare November 14, 2024 11:03
@graphite-app graphite-app bot merged commit b082f8a into main Nov 14, 2024
7 checks passed
@graphite-app graphite-app bot deleted the feature/batch-session-timeout branch November 14, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:lib Library and SDK related issue. area:ux UI / UX issue. size:XL 500~ LoC urgency:4 As soon as feasible, implementation is essential.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User can set a batch session timeout
2 participants