The duration of a cached job

Monday, 20 November 2023 · 3 messages · last reply 22 Nov 2023
AB
Andy Bunce20 Nov 2023 12:35 #
Hi, Back in the winter of 2017, BaseX 8.6 , I reported an issue with job duration [1] A question about jobs:list-details[2] I had expected the attribute duration: evaluation time (for running and cached jobs) to be frozen once the job is cached. Using BaseX 10.7 it seems this issue is back
     job:eval("42",(),map{"cache":true()})
job24

   job:list-details("job24")
<job id="job24" type="QueryJob" state="cached" user="admin"
duration="PT39.031S"
 reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job>

   job:list-details("job24")
<job id="job24" type="QueryJob" state="cached" user="admin"
duration="PT2M35.894S"
reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job>
CG
Christian Grün21 Nov 2023 16:33 #
Hi Andy, Thanks for the observation. I’ve fixed the problem (backed by an additional JUnit test), and a new snapshot is online [1]. Best, Christian [1] https://files.basex.org/releases/latest/
Quoted text · Andy Bunce · 33 lines
On Mon, Nov 20, 2023 at 12:36 PM Andy Bunce <bunce.andy at gmail.com> wrote: > Hi, > > Back in the winter of 2017, BaseX 8.6 , I reported an issue with job > duration [1] > > A question about jobs:list-details[2] > I had expected the attribute duration: evaluation time (for running and > cached jobs) to be frozen once the job is cached. > > > Using BaseX 10.7 it seems this issue is back > ``` > job:eval("42",(),map{"cache":true()}) > job24 > > job:list-details("job24") > <job id="job24" type="QueryJob" state="cached" user="admin" > duration="PT39.031S" > reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job> > > job:list-details("job24") > <job id="job24" type="QueryJob" state="cached" user="admin" > duration="PT2M35.894S" > reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job> > ``` > /Andy > > [1] > https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg09036.html > [2] https://docs.basex.org/wiki/Job_Module#job:list-details > <https://docs.basex.org/wiki/Job_Module#job:list-details> >
AB
Andy Bunce22 Nov 2023 12:22 #
Works for me. Thanks. /Andy
Quoted text · Christian Grün · 48 lines
On Tue, 21 Nov 2023 at 15:33, Christian Grün <christian.gruen at gmail.com> wrote: > Hi Andy, > > Thanks for the observation. I’ve fixed the problem (backed by an > additional JUnit test), and a new snapshot is online [1]. > > Best, > Christian > > [1] https://files.basex.org/releases/latest/ > > > On Mon, Nov 20, 2023 at 12:36 PM Andy Bunce <bunce.andy at gmail.com> wrote: > >> Hi, >> >> Back in the winter of 2017, BaseX 8.6 , I reported an issue with job >> duration [1] >> >> A question about jobs:list-details[2] >> I had expected the attribute duration: evaluation time (for running and >> cached jobs) to be frozen once the job is cached. >> >> >> Using BaseX 10.7 it seems this issue is back >> ``` >> job:eval("42",(),map{"cache":true()}) >> job24 >> >> job:list-details("job24") >> <job id="job24" type="QueryJob" state="cached" user="admin" >> duration="PT39.031S" >> reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job> >> >> job:list-details("job24") >> <job id="job24" type="QueryJob" state="cached" user="admin" >> duration="PT2M35.894S" >> reads="(none)" writes="(none)" time="2023-11-20T11:23:44.133Z">42</job> >> ``` >> /Andy >> >> [1] >> https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg09036.html >> [2] https://docs.basex.org/wiki/Job_Module#job:list-details >> <https://docs.basex.org/wiki/Job_Module#job:list-details> >> >

⚡Generated with XQuery