You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Andrea Di Menna <ni...@gmail.com> on 2013/01/15 11:30:59 UTC

Stanbol data download and timeouts

Hi all,

looks like today there are some problems downloading opennlp lang data for
es, from github.
The download blocks and the compilation halts forever.

Would it be possible to add timeouts to the Ant Copy tasks used to download
these kind of files?

Reading Ant docs looks like it is possible to use parallel tasks which can
define timeouts [1]
Moreover, it would be good to have parallel downloads.

What do you think?

Cheers
Andrea

[1] http://ant.apache.org/manual/Tasks/parallel.html

Re: Stanbol data download and timeouts

Posted by Andrea Di Menna <ni...@gmail.com>.
Hi Rupert,

yes that should exactly do what I had in my mind :)
Have you tried it already?

Thanks
Andrea

2013/1/16 Rupert Westenthaler <ru...@gmail.com>

> Hi Anrea,
>
> if I understand correctly you suggest converting
>
>    <copy todir="${target.directory}" flatten="true">
>       <resources>
>         <url url="${model.url}/da-sent.bin"/>
>         <url url="${model.url}/da-pos-maxent.bin"/>
>         <url url="${model.url}/da-chunker.bin"/>
>       </resources>
>     </copy>
>
> to something like
>
>     <parallel threadCount="3" timeout="120000"> <!-- 2min timeout -->
>         <copy todir="${target.directory}" flatten="true"
> url="${model.url}/da-sent.bin"/ >
>         <copy todir="${target.directory}" flatten="true"
> url="${model.url}/da-pos-maxent.bin"/ >
>         <copy todir="${target.directory}" flatten="true"
> url="${model.url}/da-chunker.bin"/ >
>     </parallel>
>
> would be fine with me
>
> best
> Rupert
>
> On Tue, Jan 15, 2013 at 11:30 AM, Andrea Di Menna <ni...@gmail.com>
> wrote:
> > Hi all,
> >
> > looks like today there are some problems downloading opennlp lang data
> for
> > es, from github.
> > The download blocks and the compilation halts forever.
> >
> > Would it be possible to add timeouts to the Ant Copy tasks used to
> download
> > these kind of files?
> >
> > Reading Ant docs looks like it is possible to use parallel tasks which
> can
> > define timeouts [1]
> > Moreover, it would be good to have parallel downloads.
> >
> > What do you think?
> >
> > Cheers
> > Andrea
> >
> > [1] http://ant.apache.org/manual/Tasks/parallel.html
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>

Re: Stanbol data download and timeouts

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi Anrea,

if I understand correctly you suggest converting

   <copy todir="${target.directory}" flatten="true">
      <resources>
        <url url="${model.url}/da-sent.bin"/>
        <url url="${model.url}/da-pos-maxent.bin"/>
        <url url="${model.url}/da-chunker.bin"/>
      </resources>
    </copy>

to something like

    <parallel threadCount="3" timeout="120000"> <!-- 2min timeout -->
        <copy todir="${target.directory}" flatten="true"
url="${model.url}/da-sent.bin"/ >
        <copy todir="${target.directory}" flatten="true"
url="${model.url}/da-pos-maxent.bin"/ >
        <copy todir="${target.directory}" flatten="true"
url="${model.url}/da-chunker.bin"/ >
    </parallel>

would be fine with me

best
Rupert

On Tue, Jan 15, 2013 at 11:30 AM, Andrea Di Menna <ni...@gmail.com> wrote:
> Hi all,
>
> looks like today there are some problems downloading opennlp lang data for
> es, from github.
> The download blocks and the compilation halts forever.
>
> Would it be possible to add timeouts to the Ant Copy tasks used to download
> these kind of files?
>
> Reading Ant docs looks like it is possible to use parallel tasks which can
> define timeouts [1]
> Moreover, it would be good to have parallel downloads.
>
> What do you think?
>
> Cheers
> Andrea
>
> [1] http://ant.apache.org/manual/Tasks/parallel.html



--
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen