Skip to content

CE-1705: Introduce queue for instance generation

The processsTemplate function has been redesigned so that it doesn't immediately return the details, but just starts creating ioc instances in the background. The IOC instance creations as methods are placed in a blocking queue and they are executed sequentially. In further implementations, the operation id can be used to poll the statuses of the those processes.

When the application starts, it picks up incomplete ioc instance tasks and executes them.

The ioc_instance table has also been modified, adding 3 new fields: status (status of the creation process, this can be UNKNOWN, QUEUED, RUNNING, FAILED, SUCCESSFUL) finished_at timestamp, error_message

Also removed NOT NULL constraints from the output project related columns.

Merge request reports

Loading