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

Improve handling of invalid workdir creation #67

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LegenJCdary
Copy link
Collaborator

fixing issue #45

@LegenJCdary LegenJCdary force-pushed the non_existing_workdir branch from 0430744 to fba33aa Compare March 24, 2022 10:30
@LegenJCdary LegenJCdary requested a review from cinek810 March 24, 2022 10:37
seq_path = os.path.join(date_dir, f"{conf['file_naming']['sequence_prefix']}"
f"{new_sequence:04d}")
except Exception as exc:
logger.critical("Failed to list work dir due to: %s", exc)
Copy link
Owner

Choose a reason for hiding this comment

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

We should add tests for those criticals. Maybe a second configuration file with a different workdir run from another .sh ?

except Exception as e:
logger.critical("Failed to create work dir:%s error was:%s", seq_path, e, file=sys.stderr)
except Exception as exc:
logger.critical("Failed to create work dir: %s due to: %s", seq_path, exc)
Copy link
Owner

Choose a reason for hiding this comment

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

sam as above

@LegenJCdary LegenJCdary force-pushed the non_existing_workdir branch 14 times, most recently from 9110502 to c72918b Compare March 30, 2022 08:06
@LegenJCdary LegenJCdary marked this pull request as draft March 30, 2022 08:06
@LegenJCdary LegenJCdary force-pushed the non_existing_workdir branch 12 times, most recently from 311cce3 to edb3071 Compare March 31, 2022 09:58
@LegenJCdary LegenJCdary force-pushed the non_existing_workdir branch 19 times, most recently from 353f89e to 76cc173 Compare March 31, 2022 13:55
@LegenJCdary LegenJCdary force-pushed the non_existing_workdir branch 2 times, most recently from 4caf999 to 42ebf48 Compare March 31, 2022 13:59
@LegenJCdary LegenJCdary added this to the v1.0.0 milestone Dec 14, 2023
@cinek810 cinek810 force-pushed the main branch 5 times, most recently from 4cdc87c to c1f7847 Compare May 9, 2024 12:12
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.

2 participants