As an AIMMS application developer, moving from using AIMMS PRO solver sessions and AIMMS PRO solver license leases to AIMMS PRO API tasks on the AIMMS Cloud, I would like to be able to specify timeouts for the task created on wallclock execution time and on queueing time before task start.
For instance as parameters wallclockTimeout and queueTimeout on a POST to the endpoints
- /tasks/{appName}/{appVersion}/{serviceName}
- /tasks/{appName}/{serviceName}
Remarks:
- pro::DelegateToServer has argument timeout, defaulting to 1 hour (3.600.000 milliseconds). See also: https://documentation.aimms.com/pro/pro-delegate-adv.html#timing-out-requests
- pro::solverlease::solveModel, acquireTimeout argument, see https://documentation.aimms.com/pro/solver-lease.html#solver-lease-concepts
- workaround: within the procedure(s) that are called to execute a task, you can specify:
- a timeout on a solve, for instance using the option time limit, or the function GMP::Instance::SetTimeLimit
- measuring the wall clock time since the start of the task, for instance using the stopwatch library, see https://how-to.aimms.com/Articles/574/574-stopwatch-library.html