Commit 2ffc53e6 authored by Alexandre Boyer's avatar Alexandre Boyer
Browse files

add system-cache-dir to experiment-cleanup as optional arg, monitor interval from 5 to 30

parent 06bbc1a9
Pipeline #125265 failed with stage
in 34 seconds
......@@ -14,6 +14,10 @@ from diva_evaluation_cli.src.entry_points.actev_experiment_cleanup import entry_
class ActevExperimentCleanup(ActevCommand):
"""Close any servers, terminates cluster (future functionality), etc.
Command args:
* system-cache-dir or s: path to system cache directory
def __init__(self):
......@@ -27,4 +31,5 @@ class ActevExperimentCleanup(ActevCommand):
arg_parser.description = "Close any servers, terminates cluster, etc."
arg_parser.add_argument("-s", "--system-cache-dir", help="path to system cache directory")
arg_parser.set_defaults(func=ActevExperimentCleanup.command, object=self)
......@@ -40,7 +40,7 @@ class Monitor():
def __init__(self, main_function, args, command_name='default_command', interval=5):
def __init__(self, main_function, args, command_name='default_command', interval=30):
main_function (function): Python function that will be run as a subprocess and monitored
......@@ -5,10 +5,13 @@ Implements the entry-point by using Python or any other languages.
import os
def entry_point():
def entry_point(system_cache_dir):
"""Method to complete: you have to raise an exception if an error occured in the program.
Close any servers, terminates cluster (future functionality), etc.
system_cache_dir (str): Path to system cache directory
raise NotImplementedError("You should implement the entry_point method.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment