Page 1 of 1

List of optimizations running under my token...

Posted: Thu Dec 21, 2023 10:12 am
by Bernd Welter
Hi there,

I'd like to know what optimization tasks are currently in progress under my token's responsibility.
As far as I knwo there's no "list" method available as of 21.12.2023, right?

My sample application therefore executes a "garbage collection" when the program terminates because after the program exits it will definetly not retrieve the results anymore.

Bernd

Re: List of optimizations running under my token...

Posted: Thu Dec 21, 2023 12:01 pm
by michael.unrau
Yes, at the moment there is no possibility to list running/finished jobs, so you have to keep track of started optimizations yourself.

Cheers,
Michael

Re: List of optimizations running under my token...

Posted: Thu Jan 11, 2024 12:22 pm
by Bernd Welter
that's at least very important and I look forward to some "administration" methods. Otherwise I probably run into this message

Code: Select all

{
  "ErrorCode": 403,
  "ErrorContent": "{\"description\":\"A product-specific restriction is exceeded.\",\"errorCode\":\"ROUTEOPTIMIZATION_RESTRICTION_EXCEEDED\",\"causes\":[{\"description\":\"The maximum number of concurrent optimizations is exceeded.\",\"errorCode\":\"ROUTEOPTIMIZATION_NUMBER_OF_OPTIMIZATIONS_EXCEEDED\",\"details\":{\"limit\":1}}]}",
  "Headers": {
    "Ratelimit-Remaining": [
      "8"
    ],
  },
  "Message": "Error calling StartOptimization: {\"description\":\"A product-specific restriction is exceeded.\",\"errorCode\":\"ROUTEOPTIMIZATION_RESTRICTION_EXCEEDED\",\"causes\":[{\"description\":\"The maximum number of concurrent optimizations is exceeded.\",\"errorCode\":\"ROUTEOPTIMIZATION_NUMBER_OF_OPTIMIZATIONS_EXCEEDED\",\"details\":{\"limit\":1}}]}",
  "Data": {},
  "InnerException": null,
...  "HelpLink": null,
  "Source": "PTV_Developer",
  "HResult": -2146233088
}
So in my current test client I store the UUID of a planning right after the startOptimization and when I have to terminate the application - for whatever reason - I desperately execute a "stopOptimization" because I won't be able to fetch the result anyway.

Re: List of optimizations running under my token...

Posted: Thu Sep 05, 2024 10:45 am
by Bernd Welter
Also check this new feature!
viewtopic.php?p=5417#p5417