kernelci / kernelci-backend

Upstream Linux Kernel Validation Project API
http://api.kernelci.org
GNU Lesser General Public License v2.1
40 stars 27 forks source link

Add persistent kcidb connection per celery worker #280

Closed mgalka closed 3 years ago

mgalka commented 3 years ago

During celery worker startup there are KcidbSubmit objects created for each worker. When a celery task that needs to push data to KCIDB is run a kcidb-submit process is spawned by the KcidbSubmit object. These processes live until owning celery worker is terminated. Tasks that communicate with kcidb stream data to the appropriate kcidb-submit process stdin through a pipe.

mgalka commented 3 years ago

tested locally