Add apiCiLongPolling option to use a new redis queueing mechanism
Overwrites builds/register.json
to read runner token and behave and rewrite it as long polling request,
looking for change notification from Redis.
It introduces a new apiCiLongPolling
which is by default set to 0, and does it mean it is disabled.
It supports for now only updated runners (since 1.9.0). There's a comment what can be added to also support an old ones.
Checklist:
-
Dry current code -
Tests -
Prometheus metrics -
Changelog