Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gh/updates #564

Merged
merged 5 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { addTrace } from '@functions';
import { ISrc, ITgt } from '../spark.interfaces';
import { py_partition, py_opt_dropcolumns, py_tgt_jdbc, py_session, py_conn_src, py_tgt_nz } from '../spark.pycode/py';
import { lookupTemplate } from '../../../job.front/job.template';
import { setValues } from '../../nodepy/python/python.code.handlers/handle.values';
import { handleValues } from '../../nodepy/python/python.code.handlers/handle.values';
import { getConnection } from './handle.spark.common';

const codestring = '###__CODE__###';
Expand All @@ -22,6 +22,10 @@ export const handleWithConfig: (doc: IJobSchema, code: string) => Promise<string
return Promise.reject(err);
}

if (doc.job.params?.values) {
code = await handleValues(code, doc.job.params.values);
}

const config: IJobConfig = doc.config;

const local: string =
Expand Down Expand Up @@ -102,10 +106,6 @@ export const handleWithConfig: (doc: IJobSchema, code: string) => Promise<string
code = code.replace(codestring, target_txt);
}

if (doc.job.params?.values) {
code = await setValues(code, doc.job.params.values);
}

// here we create the final construct

return Promise.resolve(code);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ USER jovyan
COPY docker/jupyter-experimental/local/jars/* /usr/local/spark/jars/
COPY docker/jupyter-experimental/extra_jars/* /usr/local/spark/jars/
COPY docker/jupyter-experimental/local/requirements.txt /tmp/requirements.txt
COPY docker/jupyter-experimental/extra_requirements.txt /tmp/extra_requirements.txt
#COPY docker/jupyter-experimental/extra_requirements.txt /tmp/extra_requirements.txt
COPY docker/jupyter-experimental/local/extra_requirements.txt /tmp/extra_requirements.txt

WORKDIR /tmp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
openai==0.27.4
langchain==0.0.132
git+https://github.ibm.com/ai-foundation/bampy.git