Skip to content

Commit

Permalink
Merge branch 'master' into free-prom-col3
Browse files Browse the repository at this point in the history
  • Loading branch information
kedhammar authored Dec 11, 2024
2 parents 4069a51 + df99157 commit 11fd542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions VERSIONLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

No longer reserve PromethION column 3 for Clinical Genomics.

## 20241210.4

Change server_status nas to update statusdb by default

## 20241210.3

Add support for releasing DDS projects
Expand Down
9 changes: 6 additions & 3 deletions taca/server_status/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import logging

import click
Expand All @@ -16,14 +17,16 @@ def server_status():

# server status subcommands
@server_status.command()
@click.option("--statusdb", is_flag=True, help="Update the statusdb")
def nases(statusdb):
@click.option("--no_update", is_flag=True, help="Do not update the statusdb")
def nases(no_update):
"""Checks the available space on all the nases"""
if not CONFIG.get("server_status", ""):
logging.warning("Configuration missing required entries: server_status")
disk_space = status.get_nases_disk_space()
if statusdb:
if not no_update:
status.update_status_db(disk_space, server_type="nas")
else:
print(json.dumps(disk_space, indent=4))


@server_status.command()
Expand Down

0 comments on commit 11fd542

Please sign in to comment.