warelab / sciapps

SciApps: a cloud-based platform for reproducible bioinformatics workflows
https://www.sciapps.org
Apache License 2.0
2 stars 1 forks source link

Aloe changes needed for job services #95

Closed liyawang closed 5 years ago

liyawang commented 5 years ago

Testing job service

  1. Go to https://agave.iplantc.org/store to get the sandbox token for aloe_beta_client ACCESS_TOKEN="89edbef9427932dd94563eade3f68d1"
    • Select the “My Subscriptions” tab and find the newly created client in the drop down under “Applications With Subscriptions”.
    • Select the “Generate Keys” icon under the Keys-Sandbox section.
  2. Create a job.json file and make the following changes
    • changing archive to a boolean (no quotes), and
    • jobName would need to be changed to name
    • softwareName to appId? { "name": "test", "appId": "ConvertTraitID-0.0.3", "archive": false, "inputs": { "trait":"agave://data.iplantcollaborative.org/sciapps/example/gwas/trait.txt" }, "parameters": { "header": 0, "sid": "Sorghum" }
  3. Alternatively, job json can be generated with the following command
    • jobs-template $APP_ID > job.json (change 'parameter' to 'parameters', also change 'archive' to 'false'?)
    • jobs-submit -F job.json (this will not use the Aloe token!)
  4. Use the following cURL (note that we no longer use -X POST -F “fileToUpload=@job.json”)
  5. Retrieve job status: curl -sk -H "Content-Type: application/json" -H "Authorization: Bearer $ACCESS_TOKEN" https://agave.iplantc.org/jobs/v2/$job_id/?pretty=true
  6. Check output of the job
liyawang commented 5 years ago

Notes on SciTeam meeting June 13, 2019

From Jawon, Aloe copied app and system from Agave on Jan. 2019 so old system and app are still working. But, for new app and system, you will need to contact Richard to register them with Aloe.

Aloe launch is postponed to June 25, 2019

From Tyson, https://github.com/cyverse-vice

liyawang commented 5 years ago

Resolved.