-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description adding delete flow cell cli command
- Loading branch information
1 parent
2c874fb
commit b973113
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import click | ||
|
||
from cg.constants.cli_options import DRY_RUN | ||
from cg.services.illumina.post_processing.housekeeper_storage import ( | ||
delete_sequencing_data_from_housekeeper, | ||
) | ||
|
||
|
||
@click.command("illumina-run") | ||
@click.argument( | ||
"flow_cell_id", | ||
type=str, | ||
) | ||
@click.pass_context | ||
def delete_illumina_run(context: click.Context, flow_cell_id: str): | ||
""" | ||
Delete an Illumina sequencing run. | ||
Args: | ||
flow_cell_id (str): Give the flow cell id of the run to delete from statusdb and housekeeper. | ||
""" | ||
delete_sequencing_data_from_housekeeper( | ||
flow_cell_id=flow_cell_id, | ||
hk_api=context.obj.housekeeper_api, | ||
) | ||
context.obj.status_db.delete_illumina_flow_cell(internal_id=flow_cell_id) |