Skip to content

Commit

Permalink
Merge pull request #58 from jaytmiller/add-jobdef-ladder
Browse files Browse the repository at this point in the history
Add jobdef ladder
  • Loading branch information
jaytmiller authored Mar 9, 2021
2 parents 760d7f9 + 120f22b commit 2971db1
Show file tree
Hide file tree
Showing 14 changed files with 171 additions and 347 deletions.
112 changes: 0 additions & 112 deletions calcloud/dynamodb.py

This file was deleted.

5 changes: 2 additions & 3 deletions calcloud/lambda_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,12 @@ def _main(comm, ipppssoot, bucket_name):
except comm.xdata.client.exceptions.NoSuchKey:
metadata = dict(memory_retries=0, job_id=None, terminated=False)

# get_plan() raises AllBinsTriedQuit when retries exhaust higher memory job definitions
p = plan.get_plan(ipppssoot, bucket_name, f"{bucket_name}/inputs", metadata["memory_retries"])

# Only reached if get_plan() defines a viable job plan
print("Job Plan:", p)

response = submit.submit_job(p)

print("Submitted job for", ipppssoot, "as ID", response["jobId"])

metadata["job_id"] = response["jobId"]
comm.xdata.put(ipppssoot, metadata)
134 changes: 0 additions & 134 deletions calcloud/metrics.py

This file was deleted.

Loading

0 comments on commit 2971db1

Please sign in to comment.