some notes and cleanup
@@ -23,6 +23,7 @@ def gpu_queue(options):
configs = options['configs']
gpu_options = configs['gpu_options']
devices = []
+ options['remove'] = True
# device specified, remove all other devices
if 'device' in gpu_options:
@@ -394,6 +395,7 @@ def file_queue(path, template_path='/vent/', r_host='redis'):
if image not in failed_images:
orig_path = orig_path_d[image]
labels = labels_d[image]
+ configs[image]['remove'] = True
name = image.replace('/', '-').replace(':', '-') + '_' + \
str(int(time.time()))+'_'+str(uuid.uuid4())[:4]
@@ -433,6 +435,7 @@ def file_queue(path, template_path='/vent/', r_host='redis'):
else:
if 'gpu_options' in configs[image]:
del configs[image]['gpu_options']
+ # TODO check for links
d_client.containers.run(image=image,
command=command,
labels=labels,
