Feature #2484
Resume ingestion automatically
100%
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.
Subtasks
Updated by Ayush Khandelwal over 2 years ago
- Due date set to 07/07/2022
- Assignee changed from Ayush Khandelwal to Venmuhilan B
- Estimated time set to 3.00 h
Updated by Ayush Khandelwal over 2 years ago
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;
Updated by Ayush Khandelwal over 2 years ago
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;
Updated by Venmuhilan B over 2 years ago
- Status changed from Resolved to Feedback
- Assignee changed from Venmuhilan B to Ayush Khandelwal
Updated by Ayush Khandelwal about 2 years ago
- Assignee changed from Ayush Khandelwal to Ram Kordale
Working as expected