Fix chwriter channels_active metric.

6 jobs for <span class="ref-name">fix-avs-chwriter-metric</span> in 1 minute and 37 seconds (queued for 1 second)
Status Job ID Name Coverage
  Lint
passed #43386
docker
flake8

00:00:22

passed #43390
docker
futurize

00:00:23

passed #43389
docker
pylint

00:00:27

failed #43388
docker allowed to fail
radon

00:00:20

failed #43387
docker allowed to fail
yapf

00:00:11

 
  Test
failed #43391
docker allowed to fail
test_noc

00:01:08

21.0%
 
Name Stage Failure
failed
test_noc Test
Coverage            : 21%
Coverage Statements : 20679
Coverage Missing : 16239
Coverage Excluded : 1
Uploading artifacts...
./var/coverage: found 378 matching files
./var/report: found 2 matching files
Uploading artifacts to coordinator... ok id=43391 responseStatus=201 Created token=rSqL93xF
ERROR: Job failed: exit code 2
failed
radon Lint
++ x=0
++ echo '$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi'
++ '[' '!' -z services/chwriter/service.py ']'
++ for i in "${FLIST}"
++ xenon --max-absolute B --max-modules B --max-average B services/chwriter/service.py
$ x=0
$ if [ ! -z "$FLIST" ]; then for i in "${FLIST}" ; do (xenon --max-absolute B --max-modules B --max-average B "$i"; let x+=$?); done; fi
++ let x+=0
ERROR: Job failed: exit code 1
failed
yapf Lint
-                    config.clickhouse.rw_password,
- config.clickhouse.db,
- "SELECT%20dummy%20FROM%20system.one"
+ self.ch_address, config.clickhouse.rw_user, config.clickhouse.rw_password,
+ config.clickhouse.db, "SELECT%20dummy%20FROM%20system.one"
)
)
if code == 200:
ERROR: Job failed: exit code 1