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

Inform user about failing wf jobs #262

Merged

Conversation

lars-petter-hauge
Copy link
Contributor

Task
Solves #194

Approach
Lists the following jobs that fails from the executed workflow in the dialog window.

I'll see if the stdout and stderr can be written to file as well, but that will be handled in libres.

Depends on

Copy link
Contributor

@ManInFez ManInFez left a comment

Choose a reason for hiding this comment

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

Minor comments, looks good overall!

if cancelled:
self.workflowKilled.emit()
else:
success = self._workflow_runner.workflowResult()
report = self._workflow_runner.workflowReport()
failed_jobs = [k for k, v in report.items() if not v['completed']]

if not success:
Copy link
Contributor

Choose a reason for hiding this comment

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

would prefer "if success:"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed

if cancelled:
self.workflowKilled.emit()
else:
success = self._workflow_runner.workflowResult()
report = self._workflow_runner.workflowReport()
Copy link
Contributor

Choose a reason for hiding this comment

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

not needed unless success is true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've relocated the variables

@lars-petter-hauge lars-petter-hauge merged commit d24f965 into equinor:master Mar 18, 2019
@ghost ghost removed ready for review labels Mar 18, 2019
markusdregi pushed a commit that referenced this pull request Jun 9, 2021
…ctions

Inline stringlist buffer functions
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.

None yet

2 participants