Example #1
0
def cleanup(ctx, days, hours, site, dry_run):
    """ Do appropriate cleanup on the given site i.e. NAS/processing servers/UPPMAX """
    seconds = misc.to_seconds(days, hours)
    if site == 'nas':
        st.cleanup_nas(seconds)
    if site == 'processing-server':
        st.cleanup_processing(seconds)
    if site in ['illumina','analysis','archive']:
        st.cleanup_uppmax(site, seconds, dry_run)
Example #2
0
File: cli.py Project: Galithil/TACA
def cleanup(ctx, site, dry_run):
    """ Do appropriate cleanup on the given site i.e. NAS/processing servers/UPPMAX """
    params = ctx.parent.params
    days = params.get('days')
    if site == 'nas':
        st.cleanup_nas(days)
    if site == 'processing-server':
        st.cleanup_processing(days)
    if site == 'swestore':
        st.cleanup_swestore(days, dry_run)
    if site in ['illumina','analysis','archive']:
        st.cleanup_uppmax(site, days, dry_run)
Example #3
0
def cleanup(ctx, site, dry_run):
    """ Do appropriate cleanup on the given site i.e. NAS/processing servers/UPPMAX """
    params = ctx.parent.params
    days = params.get('days')
    if site == 'nas':
        st.cleanup_nas(days)
    if site == 'processing-server':
        st.cleanup_processing(days)
    if site == 'swestore':
        st.cleanup_swestore(days, dry_run)
    if site in ['illumina', 'analysis', 'archive']:
        st.cleanup_uppmax(site, days, dry_run)