Feature #2484
Resume ingestion automatically
Added by Ram Kordale over 2 years ago.
Updated over 1 year ago.
Estimated time:
(Total: 5.00 h)
Description
Today, if the instance dies while ingestion is ongoing, the resume button is activated. Using the same logic that detects when to activate the resume button, automatically resume the ingestion.
- Due date set to 07/07/2022
- Assignee changed from Ayush Khandelwal to Venmuhilan B
- Estimated time set to 3.00 h
- Status changed from New to In Progress
Scheme:
OnApplicationStartup:
for(book : books):
if('book' is in on-going state like resume button):
check last updated time of a 'book' for the ingestion book i.e. X minutes
if(isResumeAllowed(X)):
resume the ingestion for a 'book'
isResumeAllowed(X):
waiting_allow_time = 10 minutes
if(X - waiting_allow_time < 0):
sleep the thread for (waiting_allow_time-X) minutes
return true;
Scheme:
OnApplicationStartup:
for(book : books):
if('book' is in on-going state like resume button):
check last updated time of a 'book' for the ingestion book i.e. X minutes
if(isResumeAllowed(X)):
resume the ingestion for a 'book'
isResumeAllowed(X):
waiting_allow_time = 10 minutes
if(X - waiting_allow_time < 0):
sleep the thread for (waiting_allow_time-X) minutes
return true;
- Estimated time deleted (
3.00 h)
- Status changed from In Progress to Resolved
- Status changed from Resolved to Feedback
- Assignee changed from Venmuhilan B to Ayush Khandelwal
- Assignee changed from Ayush Khandelwal to Ram Kordale
- Status changed from Feedback to Closed
Also available in: Atom
PDF