Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/partial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
pip install -r requirements.txt
- name: Run partial processing
id: main
if: matrix.module != 'eufondy' && matrix.module != 'psp' && matrix.module != 'steno'
if: matrix.module != 'eufondy' && matrix.module != 'steno'
run: |
python3 main.py --connstring sqlite:///data.db --partial ${{ matrix.module }}
- name: Run partial processing (broken jobs)
Expand Down
6 changes: 3 additions & 3 deletions data/psp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def main(outdir: str, partial: bool = False):

job = functools.partial(process_mapping, outdir, partial)
ncpu = multiprocessing.cpu_count()
if os.getenv("CI"):
logging.info("Pouze jedno CPU, abychom nepretizili psp.cz")
ncpu = 1
# if os.getenv("CI"):
# logging.info("Pouze jedno CPU, abychom nepretizili psp.cz")
# ncpu = 1
with multiprocessing.Pool(ncpu) as pool:
for tema, tabulka in pool.imap_unordered(job, mapping):
logging.info("hotovo: %s, %s", tema, tabulka)
Expand Down