jobs:list-details o/p
Tuesday, 12 February 2019 · 3 messages · last reply 13 Feb 2019
AB
Andy Bunce12 Feb 2019 19:04 #
Hi,
Before BaseX 9 jobs:list-details would return the query string used in the jobs:eval (or the uri if that was used) - as per the current docs [1] Versions 9+ returns a "dummy" file name in this case.
jobs:eval("2+4",(),map{"cache":true()})
jobs:list-details("job2")
<job id="job2" type="QueryJob" state="cached" user="admin"
duration="PT0.001S" reads="(none)" writes="(none)"
time="2019-02-12T17:53:41.772Z">file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/tasks/model.build/file</job>I found the old behavior useful, (although it missed recording the static-base-uri).
/Andy
[1] http://docs.basex.org/wiki/Jobs_Module#jobs:list-details
CG
Christian Grün13 Feb 2019 17:14 #
Hi Andy,
I completely agree, the inclusion of the dummy file name doesn’t make any sense here. Job handling has been revised in Version 9, but I think I have found a solution for the job listing that should work similar to the original one.
A new snapshot is online [1], your feedback is welcome.
Christian
[1] http://files.basex.org/releases/latest/
Quoted text · Andy Bunce · 19 lines
On Tue, Feb 12, 2019 at 7:05 PM Andy Bunce <bunce.andy at gmail.com> wrote: > > Hi, > > Before BaseX 9 jobs:list-details would return the query string used in the jobs:eval (or the uri if that was used) - as per the current docs [1] > Versions 9+ returns a "dummy" file name in this case. > > jobs:eval("2+4",(),map{"cache":true()}) > > jobs:list-details("job2") > <job id="job2" type="QueryJob" state="cached" user="admin" duration="PT0.001S" reads="(none)" writes="(none)" time="2019-02-12T17:53:41.772Z">file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/tasks/model.build/file</job> > > I found the old behavior useful, (although it missed recording the static-base-uri). > > /Andy > > [1] http://docs.basex.org/wiki/Jobs_Module#jobs:list-details > >
AB
Andy Bunce13 Feb 2019 19:02 #
Looks good. Thanks.
/Andy
Quoted text · Christian Grün · 40 lines
On Wed, 13 Feb 2019 at 16:14, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Andy, > > I completely agree, the inclusion of the dummy file name doesn’t make > any sense here. Job handling has been revised in Version 9, but I > think I have found a solution for the job listing that should work > similar to the original one. > > A new snapshot is online [1], your feedback is welcome. > Christian > > [1] http://files.basex.org/releases/latest/ > > > > On Tue, Feb 12, 2019 at 7:05 PM Andy Bunce <bunce.andy at gmail.com> wrote: > > > > Hi, > > > > Before BaseX 9 jobs:list-details would return the query string used in > the jobs:eval (or the uri if that was used) - as per the current docs [1] > > Versions 9+ returns a "dummy" file name in this case. > > > > jobs:eval("2+4",(),map{"cache":true()}) > > > > jobs:list-details("job2") > > <job id="job2" type="QueryJob" state="cached" user="admin" > duration="PT0.001S" reads="(none)" writes="(none)" > time="2019-02-12T17:53:41.772Z">file:///C:/Users/andy/git/vue-poc/src/vue-poc/features/tasks/model.build/file</job> > > > > I found the old behavior useful, (although it missed recording the > static-base-uri). > > > > /Andy > > > > [1] http://docs.basex.org/wiki/Jobs_Module#jobs:list-details > > > > >
Written for BaseX 9.1. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery