facultyai / faculty

A Python library for interacting with the Faculty platform
https://faculty.ai/platform/
18 stars 5 forks source link

job definitions no longer return Conda environments, so do not require them #194

Closed imrehg closed 3 years ago

imrehg commented 3 years ago

This seems to be a divergence between server responses and this library. An example server response for a Python job is as follows:

{
    "jobId": "[snip]",
    "meta": {
        "name": "somejob",
        "description": "",
        "authorId": "[snip]",
        "createdAt": "2021-09-28T11:10:36.321Z",
        "lastUpdatedAt": "2021-09-28T11:10:36.321Z",
    },
    "definition": {
        "workingDir": "/project",
        "command": {"name": "", "parameters": []},
        "imageType": "python",
        "instanceSizeType": "custom",
        "instanceSize": {"milliCpus": 1000, "memoryMb": 4000},
        "maxRuntimeSeconds": 3600,
        "environmentIds": [],
    },
    "createdFromProjectTemplate": None,
}