You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/29 14:43:25 UTC
[GitHub] [airflow] denysivanov commented on issue #18598: SerializedDagNotFound - when create 1000 dags
denysivanov commented on issue #18598:
URL: https://github.com/apache/airflow/issues/18598#issuecomment-930244780
@khalidmammadov I do not have an issue when I am not referencing a helper class.
Issue is exists only when you reference helper.
Here is my helper - when you use helper you would see an issue.
```
import os
from pathlib import Path
def get_time_wait_cuy():
return os.environ['environment']
def get_dag_id_from_path(dag_file_path):
path = Path(dag_file_path)
stem = path.stem
trimmed_path = Path(*path.parts[5:len(path.parts) - 1])
prefix = str(trimmed_path).replace(os.path.sep, '_')
return '__'.join([prefix, stem])
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org