Skip to content

Commit

Permalink
fix: push custom notebook to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr committed Mar 28, 2024
1 parent fad690c commit 44a37f6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions __pipeline__.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@
" if index == 0:\n",
" naas.secret.add(x, value)\n",
" if li_at == \"NA\":\n",
" li_at = naas.secret.get(\"LINKEDIN_LI_AT\")\n",
" li_at = naas.secret.get(\"li_at\")\n",
" if JSESSIONID == \"NA\":\n",
" JSESSIONID = naas.secret.get(\"LINKEDIN_JSESSIONID\")\n",
" JSESSIONID = naas.secret.get(\"JSESSIONID\")\n",
" \n",
" # Set timezone: Timezone will be defined from the first profile region's and country's\n",
" if index == 0:\n",
Expand Down Expand Up @@ -359,7 +359,8 @@
"# Schedule pipeline\n",
"cron = \"0 12 * * *\"\n",
"print(\"⏰ Scheduler:\", cron)\n",
"naas.scheduler.add(cron=cron)"
"naas.scheduler.add(cron=cron)\n",
"# naas.scheduler.delete()"
]
},
{
Expand Down Expand Up @@ -393,7 +394,12 @@
" engine_model_dir = os.path.join(naas_data_product.MODELS_PATH, engine)\n",
"\n",
" # Add dependencies\n",
" files = glob.glob(os.path.join(engine_model_dir, \"core\", \"domain\", \"*.ipynb\")) + [os.path.join(engine_model_dir, \"__pipeline__.ipynb\")] + [os.path.join(engine_model_dir, \"__plugin__.ipynb\")]\n",
" files = (\n",
" glob.glob(os.path.join(engine_model_dir, \"core\", \"domain\", \"*.ipynb\")) + \n",
" glob.glob(os.path.join(engine_model_dir, \"custom\", \"*.ipynb\")) + \n",
" [os.path.join(engine_model_dir, \"__pipeline__.ipynb\")] + \n",
" [os.path.join(engine_model_dir, \"__plugin__.ipynb\")]\n",
" )\n",
" for file in files:\n",
" print(\"🔗 Dependency:\", file)\n",
" naas.dependency.add(file)\n",
Expand Down

0 comments on commit 44a37f6

Please sign in to comment.