-
Notifications
You must be signed in to change notification settings - Fork 20
Add an option to auto-cancel a pending session after specified timeout #527
Add an option to auto-cancel a pending session after specified timeout #527
Conversation
…rbidden type's session
…lidation using trafaret.
…te time that stay pending status
…ernelInfo for test
…rnelInfo for test
Codecov Report
@@ Coverage Diff @@
## main #527 +/- ##
==========================================
- Coverage 49.28% 48.81% -0.48%
==========================================
Files 55 55
Lines 9079 9342 +263
==========================================
+ Hits 4475 4560 +85
- Misses 4604 4782 +178
Continue to review full report at Codecov.
|
Please merge the main branch to resolve a conflict with addition of |
…ng-session-after-specified-timeout
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.
Could you write a test case by setting created_at
to a time in the past?
ok! I got it! |
What I meant is to create a new test case with a specific created_at time set in the past (maybe by subtracting from the current timestamp) and test actual status transition, not just changing the values of timestamps in the test fixtures... |
I'll add a new test case within this week :) |
…ng-session-after-specified-timeout
…om the current timestamp
…ng-session-after-specified-timeout
* Temporarily remove "timeout" example session as it interfers with the DRF/LIFO scheduler test cases. We should use a separate example session list.
* timedelta.seconds is 0 to 86399 as it has a separate field for days. * We need to use total_seconds() to get the int representation or convert all operands to timedelta objects when comparing their absolute values.
* Scheduler configs are now part of it as the "config" field. * etcd's scheduler plugin config format is NOT changed. * Fix merging of global scheduler config and local scheduler config.
Now need to perform an integratino test. |
resolves: lablup/backend.ai#337
Related to: lablup/backend.ai#343
Add an option to auto cancel a pending session after specified timeout