initial stage

This commit is contained in:
Giambattista Bloisi 2024-06-13 00:11:39 +02:00
parent f807ce4911
commit 47bcc93c7d
1 changed files with 10 additions and 12 deletions

View File

@ -30,13 +30,13 @@ dag = DAG(
secrets = [ secrets = [
Secret( Secret(
deploy_type='env', deploy_type='env',
deploy_target='CURATION_OPENSEARCH_USER', deploy_target='CURATION_OPENSEARCH__USER',
secret='opensearch-conn-secrets', secret='opensearch-conn-secrets',
key='username', key='username',
), ),
Secret( Secret(
deploy_type='env', deploy_type='env',
deploy_target='CURATION_OPENSEARCH_PASSWORD', deploy_target='CURATION_OPENSEARCH__PASSWORD',
secret='opensearch-conn-secrets', secret='opensearch-conn-secrets',
key='password', key='password',
), ),
@ -49,16 +49,14 @@ task = KubernetesPodOperator(
namespace='kg-airflow', namespace='kg-airflow',
image='gbloisi/curation:1.0.0', image='gbloisi/curation:1.0.0',
image_pull_policy="Always", image_pull_policy="Always",
cmds=['sleep'], cmds=['python3'],
arguments=['9999999'], arguments=['/antispam-batch.py',
# cmds=['python3'], "--opensearch.host", conn.host,
# arguments=['/antispam-batch.py', "--opensearch.port", str(conn.port),
# "--opensearch.host", conn.host, "--openai.host", "local-ai.kg-airflow.dev-1.eosc.intranet",
# "--opensearch.port", str(conn.port), "--openai.port", "8000",
# "--openai.host", "local-ai.kg-airflow.dev-1.eosc.intranet", "--parallelism", "8"
# "--openai.port", "8000", ],
# "--parallelism", "8"
# ],
secrets=secrets, secrets=secrets,
is_delete_operator_pod=True, is_delete_operator_pod=True,
in_cluster=True, in_cluster=True,