Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing import in storages.pumped_hydro #849

Closed
ClaraBuettner opened this issue Jul 28, 2022 · 0 comments · Fixed by #850
Closed

Missing import in storages.pumped_hydro #849

ClaraBuettner opened this issue Jul 28, 2022 · 0 comments · Fixed by #850
Assignees
Labels
🐛 bug Something isn't working

Comments

@ClaraBuettner
Copy link
Contributor

The task storages.allocate-pumped-hydro-eGon2035 failed in the current CI-run:

[2022-07-28 14:56:15,109] {taskinstance.py:901} INFO - Executing <Task(Storages (versioned)): storages.allocate-pumped-hydro-eGon2035> on 2022-07-24T20:52:55+00:00
[2022-07-28 14:56:15,119] {standard_task_runner.py:54} INFO - Started process 681625 to run task
[2022-07-28 14:56:15,231] {standard_task_runner.py:77} INFO - Running: ['airflow', 'run', 'egon-data-processing-pipeline', 'storages.allocate-pumped-hydro-eGon2035', '2022-07-24T20:52:55+00:00', '--job_id', '185', '--pool', 'default_pool', '--raw', '-sd', 'DAGS_FOLDER/dags/pipeline.py', '--cfg_path', '/tmp/tmpnidbw63_']
[2022-07-28 14:56:15,232] {standard_task_runner.py:78} INFO - Job 185: Subtask storages.allocate-pumped-hydro-eGon2035
[2022-07-28 14:56:15,270] {logging_mixin.py:120} INFO - Running <TaskInstance: egon-data-processing-pipeline.storages.allocate-pumped-hydro-eGon2035 2022-07-24T20:52:55+00:00 [running]> on host at32
[2022-07-28 14:56:15,610] {taskinstance.py:1150} ERROR - name 'egon' is not defined
Traceback (most recent call last):
  File "/home/egondata/git-repos/friday-evening-weekend-run/environment/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 984, in _run_raw_task
    result = task_copy.execute(context=context)
  File "/home/egondata/git-repos/friday-evening-weekend-run/code/src/egon/data/datasets/__init__.py", line 194, in skip_task
    result = super(type(task), task).execute(*xs, **ks)
  File "/home/egondata/git-repos/friday-evening-weekend-run/environment/lib/python3.8/site-packages/airflow/operators/python_operator.py", line 113, in execute
    return_value = self.execute_callable()
  File "/home/egondata/git-repos/friday-evening-weekend-run/environment/lib/python3.8/site-packages/airflow/operators/python_operator.py", line 118, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/home/egondata/git-repos/friday-evening-weekend-run/code/src/egon/data/datasets/storages/__init__.py", line 92, in allocate_pumped_hydro_eGon2035
    nep = select_nep_pumped_hydro()
  File "/home/egondata/git-repos/friday-evening-weekend-run/code/src/egon/data/datasets/storages/pumped_hydro.py", line 31, in select_nep_pumped_hydro
    cfg = egon.data.config.datasets()["power_plants"]
NameError: name 'egon' is not defined
[2022-07-28 14:56:15,617] {taskinstance.py:1187} INFO - Marking task as FAILED. dag_id=egon-data-processing-pipeline, task_id=storages.allocate-pumped-hydro-eGon2035, execution_date=20220724T205255, start_date=20220728T125615, end_date=20220728T125615
[2022-07-28 14:56:19,991] {local_task_job.py:102} INFO - Task exited with return code 1

I had a look at the recent changes, it looks like f94f918 created this problem. I manually undid this change in the current CI run and the task run successfully.
@AmeliaNadal: These changes seem to be already in the dev-branch. Do you know if it run successfully once? Looking at the code, I would assume that this problem also exists in test-mode.

@ClaraBuettner ClaraBuettner added the 🐛 bug Something isn't working label Jul 28, 2022
AmeliaNadal pushed a commit that referenced this issue Jul 28, 2022
@AmeliaNadal AmeliaNadal mentioned this issue Jul 28, 2022
6 tasks
AmeliaNadal pushed a commit that referenced this issue Jul 28, 2022
AmeliaNadal added a commit that referenced this issue Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants