Skip to content

Commit

Permalink
fix bad sra len and report num jobs completed
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Sep 30, 2020
1 parent 88369b3 commit 95520ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion workflow/rules/functions.smk
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def identify_sra_sample():
sra_fetch = cur.execute(config["sqlite_select_command_sra"]).fetchall()
max_datasets = config["max_datasets_sra"]
if max_datasets >= (len(sra_fetch) - 1):
max_datasets = len(sra_fetch) - 1
# This is purposefully different from asm max
max_datasets = len(sra_fetch)
for record in sra_fetch[0:max_datasets]:
if record:
file_acc = record[1].split(";")
Expand Down
6 changes: 4 additions & 2 deletions workflow/scripts/slack_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def log_handler(msg):
"type": "mrkdwn",
"text": ":cyclone: Snakemake workflow on *"
+ node_name
+ "* started running the following rules at "
+ "* started running the following jobs at "
+ "*"
+ current_time
+ "*.",
Expand Down Expand Up @@ -94,7 +94,9 @@ def log_handler(msg):
"type": "mrkdwn",
"text": ":heavy_check_mark: Snakemake workflow on *"
+ node_name
+ "* completed sucessfully at "
+ "* completed "
+ str(msg["total"])
+ " jobs sucessfully at "
+ "*"
+ current_time
+ "*.",
Expand Down

0 comments on commit 95520ad

Please sign in to comment.