[TYPO3-mvc] Fluid/Extbase and long term operation

Robert Schneider r.schneider at artworx.at
Mon Sep 10 10:02:20 CEST 2012


Just want to say thank you for your inspiration. I don't know if I will 
try to realize this. At least it's good to know about this quite 
reasonable approach.

Regards,
Robert


Am 05.09.2012 16:46, schrieb Claus Due:
> Hi Robert,
>
> Probably the best way to do this is to create a custom Scheduler job (not the Extbase one) and enable it to continually update the additional information that is presented in [ square brackets ] in the Scheduler module. Then instruct the BE user to simply trigger a task you previously configured and told not to execute automatically (unless you also need that, it may make sense to schedule it given that you're importing things).
>
> Once the task is started, manually or otherwise, the user can continue to use the BE. If he then views the Scheduler module he can see a percentage update or "X of Y" style progress indication.
>
> For a practical example on how this is used see the Scheduler jobs for the new versions of index_search among others. Using this additional feedback is superb for scripts that have very long execution times.
>
> PS: it is possible to read the additional information directly from the Scheduler task as stored in DB and the same is true for forcing a task to be re-scheduled to run immediately (and if ncessary re-schedule itself after execution) - happy hacking! ;)
>
> Cheers,
> Claus
>
> On Sep 5, 2012, at 4:29 PM, Robert Schneider <r.schneider at artworx.at> wrote:
>
>> Hi,
>>
>> how can I manage this: In the backend a user should start an import operation that may take quite a time. I would like to inform the user about the process somehow. I just don't know how.
>>
>> AFAIK with Fluid/Extbase a page will be passed to the browser if it is completly rendered. This has two problems: The php call runs out and generally the user gets a feedback too late. He cannot distinguish if anything is still going on or if an error occured and the request will never end.
>>
>> How could I deal with this? What can I do if I use Fluid and Extbase? Any ideas?
>>
>> Regards,
>> Robert
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



More information about the TYPO3-project-typo3v4mvc mailing list