Page 1 of 1

Access tourplanning response in xTour2

Posted: Mon Jun 17, 2024 5:02 am
by Prakash
Hi,

As I can fetch tour planning response using "storedRequestId" for unschedule analysis. This response was available for a certain time.

How long is the tour planning result accessible in xTour2” ?
Where can I configure this value?

Regards,
Prakash

Re: Access tourplanning response in xTour2

Posted: Mon Jun 17, 2024 8:37 am
by Bernd Welter
Hello Prakash,

check the section lifetime of stored requests in the Session Storage chapter:
Lifetime of stored requests
Requests in the session storage cannot be deleted via the PTV xServer API. However, there are two general parameters in the PTV xServer configuration file to limit the life span of the stored requests. These parameters are core.session.retentionTime and core.session.cleanupInterval, see Server Configuration.

Each stored request has a time stamp containing its creation time. A ToursInExecutionRequest resets the time stamp of the corresponding stored request to the current server time. A cleanup task is started once after every cleanup interval and deletes all requests whose time stamps are older than the retention time.