Project

General

Profile

Feature #2484

Resume ingestion automatically

Added by Ram Kordale over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/07/2022
Due date:
07/08/2022
% Done:

100%

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.


Subtasks

Task #2485: Resume ingestion automatically on application startup.Closed07/07/202207/07/2022Ayush Khandelwal

Actions
Task #2486: Fetch the books for automatic resume operation.Closed07/07/202207/08/2022Ayush Khandelwal

Actions
#1

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
#2

Updated by Venmuhilan B over 2 years ago

  • Status changed from New to In Progress
#3

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;

#4

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;

#5

Updated by Ayush Khandelwal over 2 years ago

  • Estimated time deleted (3.00 h)
#6

Updated by Venmuhilan B over 2 years ago

  • Status changed from In Progress to Resolved
#7

Updated by Venmuhilan B over 2 years ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Venmuhilan B to Ayush Khandelwal
#8

Updated by Ayush Khandelwal about 2 years ago

  • Assignee changed from Ayush Khandelwal to Ram Kordale

Working as expected

#9

Updated by Ram Kordale over 1 year ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF