forked from bellwether/minerva
fixed repartition
This commit is contained in:
parent
e3055333b3
commit
5e604f07f7
4 changed files with 10 additions and 8 deletions
|
|
@ -38,7 +38,7 @@ def repartition(mach, agents):
|
|||
# Prep the info for the docker container
|
||||
variables = {"min_agent": min(agents),
|
||||
"max_agent": max(agents),
|
||||
"source": src_top_level,
|
||||
"source": sorted_top,
|
||||
"destination": dst_top_level,
|
||||
"secondary_destination": None}
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ def repartition(mach, agents):
|
|||
#####################################
|
||||
# Prep the work
|
||||
# Find out how many hours there are in the dataset
|
||||
pool_size = 5
|
||||
pool_size = 1
|
||||
|
||||
objs = s.m.s3.ls(src_top_level + "year=")
|
||||
hours = set(["s3://" + '/'.join([o.bucket_name, *o.key.split("/")[0:-1]])
|
||||
|
|
@ -87,9 +87,6 @@ try:
|
|||
# Second part: repartition
|
||||
pool.run(repartition, data=groups)
|
||||
|
||||
import IPython
|
||||
IPython.embed()
|
||||
|
||||
finally:
|
||||
pool.terminate()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue