Skip to content

Commit

Permalink
Refer to latest ingest-client, adjustments to Ingest Api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alegria Aclan committed Jun 27, 2019
1 parent c10cd37 commit 89aacb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests
pika
-e "git+https://github.com/HumanCellAtlas/ingest-client.git@a5db4e43b5099cc6635ebb194534b54b004f3d6d#egg=hca_ingest"
-e "git+https://github.com/HumanCellAtlas/ingest-client.git@81d8405#egg=hca_ingest"
4 changes: 2 additions & 2 deletions stagingmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create_upload_area(self, body):
upload_area_credentials = self.staging_api.createStagingArea(uuid)
self.logger.info(
"Upload area created! patching creds to subs envelope " + json.dumps(upload_area_credentials))
self.ingest_api.updateSubmissionWithStagingCredentials(submission_url, uuid, upload_area_credentials["uri"])
self.ingest_api.update_staging_details(submission_url, uuid, upload_area_credentials["uri"])

def delete_upload_area(self, body):
message = json.loads(body)
Expand All @@ -66,7 +66,7 @@ def delete_upload_area(self, body):
def set_submission_to_complete(self, submission_id):
for i in range(1, 5):
try:
self.ingest_api.updateSubmissionState(submission_id, 'complete')
self.ingest_api.update_submission_state(submission_id, 'complete')
self.logger.info('Submission status is set to COMPLETE')
except Exception:
self.logger.info("failed to set state of submission {0} to Complete, retrying...".format(submission_id))
Expand Down

0 comments on commit 89aacb3

Please sign in to comment.