<commit_before># FIXME remove unused tables (including migrations)
# FIXME post-init validation of dataclasses (https://docs.python.org/3/library/dataclasses.html#post-init-processing)
# FIXME workflow logger
# FIXME if something's wrong (e.g. the episode doesn't look valid), should the workflow succeed or fail?
# FIXME remove "Podcast(Transcribe)..." prefix from everywhere
# FIXME transient vs non-transient errors
# FIXME increase retries and timeouts

import dataclasses
from datetime import timedelta
from typing import Optional

# noinspection PyPackageRequirements
from temporal.activity_method import activity_method, RetryParameters
# noinspection PyPackageRequirements
from temporal.workflow import workflow_method

from .exceptions import HardException
from .enclosure import StoryEnclosure
from .media_info import MediaFileInfoAudioStream

TASK_QUEUE = "podcast-transcribe-episode"
"""Temporal task queue."""

NAMESPACE = "default"
"""Temporal namespace."""
<commit_msg>Add FIXME<commit_after># FIXME remove unused tables (including migrations)
# FIXME post-init validation of dataclasses (https://docs.python.org/3/library/dataclasses.html#post-init-processing)
# FIXME workflow logger
# FIXME if something's wrong (e.g. the episode doesn't look valid), should the workflow succeed or fail?
# FIXME remove "Podcast(Transcribe)..." prefix from everywhere
# FIXME transient vs non-transient errors
# FIXME increase retries and timeouts
# FIXME what if one or more configuration environment variables are unset?

import dataclasses
from datetime import timedelta
from typing import Optional

# noinspection PyPackageRequirements
from temporal.activity_method import activity_method, RetryParameters
# noinspection PyPackageRequirements
from temporal.workflow import workflow_method

from .exceptions import HardException
from .enclosure import StoryEnclosure
from .media_info import MediaFileInfoAudioStream

TASK_QUEUE = "podcast-transcribe-episode"
"""Temporal task queue."""

NAMESPACE = "default"
"""Temporal namespace."""

{'fraction_non_alphanumeric': 0.07258460029426189, 'fraction_numerical': 0.000980872976949485, 'mean_word_length': 6.285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2897782', 'n_tokens_mistral': 544, 'n_tokens_neox': 534, 'n_words': 196}