Hi,

I need to get the scheduled details...

Thanks & Regards
Sujan Reddy A
-----Original Message-----
From: Geert Josten
Sent:  10/02/2011 6:31:24 pm
Subject:  Re: [MarkLogic Dev General] how to get scheduled info like 'time' to 
the 'scheduled xquery file'

Hi,

It sounds like you want to now the current time at execution. You can get the 
current date/time using fn:current-date/fn:current-dateTime/fn:current-time. 
You could also try to retrieve the schedule details, but this is easiest I 
guess..

Kind regards,
Geert

Van: [email protected] 
[mailto:[email protected]] Namens Sujan Reddy
Verzonden: donderdag 10 februari 2011 13:44
Aan: [email protected]
Onderwerp: [MarkLogic Dev General] how to get scheduled info like 'time' to the 
'scheduled xquery file'

Hi,

i need to get the 'scheduled info- like time' to the scheduled xquery file.

    admin:group-one-time-scheduled-task(
        "/Scheduler_test.xqy",
        "/Docs",
        xs:dateTime("2011-03-29T14:42:52"),
        xdmp:database("Documents"),
        xdmp:database("Documents"),
        xdmp:user("Jim"),
    admin:host-get-id($config, xdmp:host-name()))

For the above code, the scheduled xquery ie., 'Scheduler_test.xqy'  will start 
executing at the given particular time.
Please let me know if there is any api or method to get the scheduled time in 
that xquery (Scheduler_test.xqy)


Thanks & Regards
Sujan Reddy

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to