Bug #2879

The restarting engines command breaks the annotations saving operation

Added by Serge Heiden 8 months ago. Updated about 1 month ago.

Status:New Start date:07/23/2020
Priority:High Due date:
Assignee:- % Done:

0%

Category:Annotation Spent time: -
Target version:TXM 0.8.2

Description

Currently, the annotations saving operation can be very long.

Users tend to call the 'File > Restart engines' command, hoping that something will get cleared but braking the annotations saving operation.

Users can even quit TXM, hoping they will get control afterwards.

As a long operation!
  • TXM must show the progression of the operation, like what is done for other time consuming commands
  • TXM must display the status of the operation: the user must understand to wait

Solution

a. remove 'File > Restart engines' menu entry
b. open a modal dialog box displaying the progression of the annotations saving operation

TXM is currently using Eclipse Jobs to run operations. The jobs are started using the Job.schedule() method which ensures jobs are started in order but do not block the other jobs.
  • The Job priority only drives the job start time.
  • The Job rule is to strict and does not allow to run a Job from another job (ex: cannot save RCP project while importing a corpus in a job)
  • The job family (see Job.belongsTo method) only allow to pilot a group of Job

partial solution: https://wiki.eclipse.org/FAQ_How_do_I_prevent_two_jobs_from_running_at_the_same_time%3F -> does not works when a ROOT level sub job is called (RCP project saving)


Related issues

related to Task #2746: Improve the UI to block only concerned branch when launch... New 01/29/2020
related to Task #2747: Improve user feedback in case of long computing or re-com... New 01/29/2020

History

#1 Updated by Serge Heiden 8 months ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde 7 months ago

  • Tracker changed from Task to Bug
  • Subject changed from Remove 'File > Restart engines' menu entry and open modal dialog box displaying the progression of the annotations saving operation to Restarting engines command break the annotations saving operation

#3 Updated by Matthieu Decorde 7 months ago

  • Subject changed from Restarting engines command break the annotations saving operation to The restarting engines command breaks the annotations saving operation

#4 Updated by Matthieu Decorde about 1 month ago

  • Description updated (diff)

Also available in: Atom PDF