Skip to content

Commit

Permalink
Activate virual environment in job.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-shepherd committed Jan 10, 2025
1 parent bd989bc commit ae7a8fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions cli/jobs/single-step/r/accidents/job.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
code: src
command: >-
source /usr/venv/bin/activate
Rscript accidents.R
--data ${{inputs.training_data}}
inputs:
Expand Down
2 changes: 0 additions & 2 deletions cli/jobs/single-step/r/accidents/src/azureml_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# 2. Manages Azure ML Token refresh for remote runs (runs that execute in Azure Machine Learning). It uses tcktk2 R libraray to schedule token refresh.
# Token refresh interval can be controlled by setting the environment variable MLFLOW_AML_TOKEN_REFRESH_INTERVAL and defaults to 30 seconds.

library(reticulate)
use_virtualenv("/usr/venv")
library(mlflow)
library(httr)
library(later)
Expand Down

0 comments on commit ae7a8fd

Please sign in to comment.