dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15976
Re: import thread
Hi,
I think the important thing here is to improve the user feedback
mechanism, not the extra thread itself. First, in my opinion it is
easier to provide user feedback this way - the current arrangement is
to start a separate thread and then request/ping that thread
continuously and return/display a status response through an ajax user
interface. I don't see how running a synchronous process and then
block the user interface will make it simpler. Second, long-running
threads are at the mercy of the container timeout - as far as I can
remember Jetty uses a default 30 second request timeout meaning large
import processes are in danger of timing out.
But yes, a total refactor of the import process is already on the plan
and we also need to improve user feedback. It might be we should do it
more like 1.4 - always do a preview of the import, then present a
report with anomalies before importing into the db. Let me think a bit
more about it.
Lars
Follow ups
References