Hen rik
12/01/2023, 10:49 AMJeff Hale
12/01/2023, 12:33 PMJeff Hale
12/01/2023, 12:34 PMJeff Hale
12/01/2023, 12:35 PMHen rik
12/01/2023, 1:07 PMJeff Hale
12/01/2023, 1:31 PMJeff Hale
12/01/2023, 2:27 PMHen rik
12/01/2023, 2:49 PMIryna
01/08/2024, 6:04 AMsubprocess
. As the Agent will be deprecated soon, I need to migrate it to workers. However, I am facing challenges because the new deployment approach requires a Docker image, and my current setup (VM and agent running locally) doesn't allow for Docker use due to specific reasons. I tried to use local subprocess
type but flow.deploy
requires docker image for deploying flows. A bit confused, why worker subprocess
can be created but can't be used with the new deployment approach. Can you clarify what I am missing here, pls? Additionally, I would greatly appreciate any guidance or recommendations on how to navigate this challenge. Thanks.Jeff Hale
01/08/2024, 3:16 PMflow.deploy
you can specify flow code storage on a git-based cloud option such as GitHub, Gitlab, or BitBucket or a cloud-based storage provider such as AWS S3, GCS, or GCP.
In my quick check, it doesn’t look like a process block can be set in flow.from_source
but I’m doing some more digging.Jeff Hale
01/08/2024, 3:40 PMflow.serve
might be the best option for your use case. You can see the docs here.Iryna
01/08/2024, 10:33 PMJeff Hale
01/08/2024, 10:44 PMIryna
01/08/2024, 10:51 PMJeff Hale
01/08/2024, 11:04 PMflow.from_source
the GitHub repository URL and any credentials if it’s a private repo. See examples here.Iryna
01/08/2024, 11:23 PMimage
variable in its base job template.` default-work-pool
is process type.
my code
cron = None if cron is None or cron == "" else (CronSchedule(cron=cron, timezone=timezone))
storage = GitHub.load("my-repo")
flow.from_source(
source=storage,
entrypoint=flow_entrypoint
).deploy(
name=depl_name,
work_pool_name=work_pool_name,
parameters=params,
tags=tags,
schedule=cron,
build=False
)
what am I doing wrong? thanksJeff Hale
01/08/2024, 11:26 PMIryna
01/08/2024, 11:34 PMimage
variable in its base job template.`
code:
flow.from_source(
source=GitRepository(
url="<https://github.com/xx/my-repo.git>",
branch="dev",
credentials={
"access_token": Secret.load("github-personal-access-token").get()
}
),
entrypoint=flow_entrypoint
).deploy(
name=depl_name,
work_pool_name=work_pool_name,
parameters=params,
tags=tags,
schedule=cron,
build=False
)
Jeff Hale
01/09/2024, 3:20 AMIryna
01/09/2024, 4:03 AM