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

Add fail_if_missing to ValohaiDownloadExecutionOperator #15

Merged
merged 1 commit into from
Nov 19, 2019

Conversation

arimbr
Copy link
Collaborator

@arimbr arimbr commented Nov 13, 2019

With this code, If no output is downloaded it fails by default. It will be clearer to avoid triggering downstream tasks in case the filename did not match.

I tested locally. For example if we now set output_name='model.pbt' instead of output_name='model.pb' we get:

[2019-11-13 16:43:08,861] {base_task_runner.py:101} INFO - Job 135: Subtask download_model airflow.exceptions.AirflowException: Failed to find any output for task_id: train_model, output_name: model.pbt, output_name_pattern: None
[2019-11-13 16:43:13,166] {logging_mixin.py:95} INFO - [2019-11-13 16:43:13,165] {jobs.py:2562} INFO - Task exited with return code 1

Copy link
Contributor

@ppierrep ppierrep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be nice and doable to inform all inputs name when a mismatch happen ?

@arimbr
Copy link
Collaborator Author

arimbr commented Nov 18, 2019

@ppierrep That's a good point! I think it is already handled as for each ignored output we get a log:

'Ignore ouput name: ...

Can you confirm that this is the case or did I misread something?

@jdiprizio
Copy link
Member

@ppierrep That's a good point! I think it is already handled as for each ignored output we get a log:

'Ignore ouput name: ...

Can you confirm that this is the case or did I misread something?

Seems like this is indeed covered by existing logging mechanisms.

@arimbr arimbr merged commit 9700393 into master Nov 19, 2019
@arimbr arimbr deleted the fix/fail-if-missing branch November 19, 2019 11:56
@ppierrep
Copy link
Contributor

Seems like this is indeed covered by existing logging mechanisms.

Oh my bad !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants