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
List of optimizations running under my token...
- Bernd Welter
- Site Admin
- Posts: 2816
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
List of optimizations running under my token...
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...

-
- Posts: 5
- Joined: Tue May 16, 2023 11:51 am
Re: List of optimizations running under my token...
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
Cheers,
Michael
Michael Unrau
DevOps Engineer
PTV Logistics - Germany
DevOps Engineer
PTV Logistics - Germany
- Bernd Welter
- Site Admin
- Posts: 2816
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: List of optimizations running under my token...
that's at least very important and I look forward to some "administration" methods. Otherwise I probably run into this message
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.
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
}
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...

- Bernd Welter
- Site Admin
- Posts: 2816
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: List of optimizations running under my token...
Also check this new feature!
viewtopic.php?p=5417#p5417
viewtopic.php?p=5417#p5417
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
