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

DM-32435 Implemented propagation of pipetask kill by signal #68

Merged
merged 1 commit into from Nov 4, 2021

Conversation

SergeyPod
Copy link
Contributor

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link
Collaborator

@MichelleGower MichelleGower left a comment

Choose a reason for hiding this comment

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

Need to add a file to the doc/changes directory. Changes approved for merging.

sys.exit(os.WEXITSTATUS(os.system(cmd_line)))

exit_status = os.system(cmd_line)
exit_code = 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know if using 1 as a default value will cause any confusion down the road with the exit 1 from the actual command. I was wondering if could use 128 instead, but haven't tested it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK, exit code 1 is the "Catchall for general errors". It will be emitted if pipetask does not provide any exit code and there was not a signal which leads to the pipetask termination. If the program terminates beyond that two cases I would assign such a case to "undefined behavior" and classify as a general error. According to this: https://tldp.org/LDP/abs/html/exitcodes.html code 128 is the "Invalid argument to exit".

@SergeyPod SergeyPod changed the title Implemented propagation of pipetask kill by signal DM-32435 Implemented propagation of pipetask kill by signal Nov 4, 2021
@SergeyPod SergeyPod merged commit f985824 into master Nov 4, 2021
@SergeyPod SergeyPod deleted the tickets/DM-32435 branch November 4, 2021 13:47
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