Learn how to push and poll your artifacts using the Openlayer REST API
openlayer.json
, there is a run script (openlayer_run.py
).
This option represents the scenario where Openlayer will use your script to get your model
outputs for your datasets.
On the other hand, option 2 illustrates the situation when
you already provide your model’s outputs for your datasets. Refer to the Configuring
output generation page for details.
Retrieve a presigned URL
objectName
query parameter has
the name of the tarfile created.Upload tarfile to the retrieved URL
url
received in the response to the previous
request with a file upload pointing to the tarfile. No authentication is
needed for this request.Create a project version
storageUri
from
the first request.
You will get the commit id as part of the response. You can use this id
to poll
the commit status, as discussed in the next section.status
field to see if it is:
running
completed
failed
queued
paused
unknown
queued
.
Shortly after, it goes to running
, and once it is completed
, you’ll receive
the passingGoalCount
, and failingGoalCount
— which are the number of tests passing,
and failing, respectively.
If the push fails (status failed
), you can check the logs on the Openlayer platform to debug the issue.