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

Avoid bugs when using snakemake's internal API #655

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

itutu-tienday
Copy link
Collaborator

Problem

It has been confirmed that when snakemake's internal API (snakemake.Workflow, etc.) is used directly, it affects the operation of a running snakemake process (such as forcing it to stop).

Solution

I decided not to use snakemake's internal API directly, and instead created new code (SmkInternalUtils) based on snakemake's original code.

Testcase

  1. The presence or absence of conda env is accurately indicated by an icon in "maintenance/setup_conda_{algoname}" in the Algorithm Tree in the side menu of the Workflow screen.
  2. Even if you repeatedly click "Refresh Node" in the side menu while a workflow is running, the workflow will finish normally without affecting the workflow.

Ported similar processing to snakemae's original code.
@itutu-tienday itutu-tienday merged commit 6ca8cdf into develop-main Mar 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants