Skip to content

Commit

Permalink
sbatch updates
Browse files Browse the repository at this point in the history
  • Loading branch information
claireboyd committed Apr 10, 2024
1 parent 874838a commit e434371
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions deployments/deploy_etl.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Traceback (most recent call last):
File "/project/crberry/firstamerican-etl/fa-etl.py", line 4, in <module>
import psutil
ModuleNotFoundError: No module named 'psutil'
Empty file added deployments/deploy_etl.out
Empty file.
1 change: 0 additions & 1 deletion fa-etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path
import logging
import psutil

import polars as pl

def mem_profile() -> str:
Expand Down
15 changes: 9 additions & 6 deletions fa-etl.sbatch
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@
#SBATCH --account=pi-crberry

module load python/anaconda-2022.05
conda activate fa_etl_env

# CREATE CONDA ENVIRONMENT IF NOT ALREADY CREATED
# conda create --name fa_etl_env python=3.11.5 --yes
# source activate fa_etl_env
# conda install -c conda-forge polars --yes
# conda install -c conda-forge psutil --yes

source activate fa_etl_env

working_directory=/Users/claireboyd/internships/mansueto/firstamerican-etl/dev/36061

log_file_arg=$working_directory/deployments/deploy_etl.log
input_dir_arg=$working_directory/

python fa-etl.py --input_dir $input_dir_arg --log_file $log_file_arg




python fa-etl.py --input_dir $input_dir_arg --log_file $log_file_arg

0 comments on commit e434371

Please sign in to comment.