Showing 1 of 3 files from the diff.
Other files ignored by Codecov
.env.sample has changed.

@@ -11,6 +11,9 @@
Loading
11 11
from .node import traverse_post_order
12 12
from .settings import (
13 13
    ELASTICSEARCH_CHUNK_SIZE,
14 +
    ELASTICSEARCH_MAX_CHUNK_BYTES,
15 +
    ELASTICSEARCH_QUEUE_SIZE,
16 +
    ELASTICSEARCH_THREAD_COUNT,
14 17
    ELASTICSEARCH_TIMEOUT,
15 18
    ELASTICSEARCH_VERIFY_CERTS,
16 19
)
@@ -49,15 +52,29 @@
Loading
49 52
            logger.exception(f'Exception {e}')
50 53
            raise
51 54
52 -
    def bulk(self, index, docs, chunk_size=None):
55 +
    def bulk(
56 +
        self,
57 +
        index,
58 +
        docs,
59 +
        chunk_size=None,
60 +
        max_chunk_bytes=None,
61 +
        queue_size=None,
62 +
        thread_count=None,
63 +
    ):
53 64
        """Bulk index, update, delete docs to Elasticsearch."""
54 65
        chunk_size = chunk_size or ELASTICSEARCH_CHUNK_SIZE
66 +
        max_chunk_bytes = max_chunk_bytes or ELASTICSEARCH_MAX_CHUNK_BYTES
67 +
        thread_count = thread_count or ELASTICSEARCH_THREAD_COUNT
68 +
        queue_size = queue_size or ELASTICSEARCH_QUEUE_SIZE
55 69
56 70
        for _ in parallel_bulk(
57 71
            self.__es,
58 72
            docs,
59 73
            index=index,
74 +
            thread_count=thread_count,
60 75
            chunk_size=chunk_size,
76 +
            max_chunk_bytes=max_chunk_bytes,
77 +
            queue_size=queue_size,
61 78
            refresh=False,
62 79
        ):
63 80
            pass
Files Coverage
pgsync 70.48%
tests/__init__.py 100.00%
Project Totals (10 files) 70.55%
codecov-umbrella
Build #411544490 -
unittests
codecov-umbrella
Build #411544490 -
unittests
codecov-umbrella
Build #411544490 -
unittests
codecov-umbrella
Build #411544490 -
unittests
1
coverage:
2
  status:
3
    project:
4
      default:
5
        threshold: 70%
6

7
codecov:
8
  archive: 
9
    uploads: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading