Matheus
10/10/2022, 1:26 PMsubprocess to select which bentoctl operator to use. Unfortunately I could not find one way to interact with this menu when I call bentoctl init . Do you have any experience on how can I do this?
If I only have one operator installed this menu never appears. But I want to do multiple calls in parallel, so I first install all the operators, and after I call bentoctl init . If I uninstall one operator in any moment, I will break a parallel process. This is why I am forced to understand how to interact with this menu.Matheus
10/10/2022, 1:28 PMsubprocess.Popen that works completely fine if I should not interact with this menu.jjmachan
10/10/2022, 2:22 PMjjmachan
10/10/2022, 2:23 PMBo
10/10/2022, 6:23 PMbentoctl init. It is probably an easier way to automate this processMatheus
10/10/2022, 7:21 PMdeployment_config.yaml using pyYaml and after used bentoctl generate to create bentoctl.tfvars and <http://main.tf|main.tf>. It worked!Matheus
10/10/2022, 7:23 PMMatheus
10/10/2022, 7:27 PMbentoctl build updates bentoctl.tfvar with those 3 informations:
• image_tag = <image_tag>
• image_repository = <image_repository>
• image_version = <image_version>
Unfortunately bentoctl build does not have an option to specify the output location of the bentoctl.tfvars file, so it is being saved in my root path (what completely breaks the idea of parallelism that I should have inn my project). In other words, I am only able to specify the input --deployment-config-file but I am not able to specify where I want that the bentoctl.tfvars are generated.Matheus
10/10/2022, 9:18 PMbentoctl.tfvars file as a turnaround. But I believe that enable users specify the output path is something useful for bentoctlMatheus
11/01/2022, 8:37 PMbentoml ? I am trying to use the lib AsyncIOScheduler but it does not work if I serve my app with bentoml . It works if I serve my app with fastapi thoughMatheus
11/01/2022, 8:54 PMMatheus
11/01/2022, 8:54 PMbentomlSean
11/02/2022, 7:35 AMMatheus
11/02/2022, 1:33 PMMatheus
11/02/2022, 1:34 PMMatheus
11/02/2022, 1:34 PMSean
11/03/2022, 11:55 PMstartup and shutdown event to an app. You can schedule the task against a BackgroundScheduler in the startup and shutdown the scheduler in the shutdown event. https://fastapi.tiangolo.com/advanced/events/Sean
11/03/2022, 11:56 PMMatheus
11/07/2022, 8:19 PMMatheus
11/07/2022, 8:20 PMMatheus
11/14/2022, 2:10 AMMatheus
11/14/2022, 2:11 AMbentofile.yaml?Matheus
11/14/2022, 2:12 AMservice: "service:svc"
include:
- src.job.2222.file.py:src.job.file.pyMatheus
11/14/2022, 2:12 AMMatheus
11/14/2022, 2:12 AMSean
11/16/2022, 6:06 AMsrc.job.2222.file.py, how would you write the import statement so that the module can be imported correctly in both the calling and deployed machine?Matheus
11/16/2022, 12:56 PMbentoctl in GCP. For this each model has a folder with a job_id in my source machine, where terraform files are created. But in the deployment machine there is not a way to know the job_id number. My solutions was to read the content of the FIRST job_id folder even thought we dont know its number. But the problem it that it can not be done in the __init__ method because it is called in the source machine, and the deployment does not work. I need to read the content of this folder only in my predict route, but if have multiple routes i need to repeat the same code in all of them.
I also realised that even with I could change the path I would not be able to read it in the init method of my router 😅, so I will keep my solution for now.Slackbot
01/20/2023, 4:53 PMMatheus
01/20/2023, 4:54 PMMatheus
01/20/2023, 4:54 PMapi_version: v1
name: aws-linux-no-gpu
operator:
name: aws-ec2
template: terraform
spec:
region: us-east-1
instance_type: t2.xlarge
ami_id: ami-033af8584d6c13c36
enable_gpus: True