https://prefect.io logo
Title
r

Rajan Subramanian

03/02/2022, 5:37 PM
a

Anna Geller

03/02/2022, 5:41 PM
I had the same situation before. The easiest way is to stop Orion and reset your DB:
prefect orion database reset -y
But note that this will delete the metadata from your local DB. Having said that, we are aware of the issue and are working on that 👍
🙌 1
r

Rajan Subramanian

03/02/2022, 5:43 PM
Thanks that helps got me worried as my memory was building up fast 🙂
👍 1
Hello, i recently deployed a pipeline via prefect orion. Its a pipeline with scheduled deployments to occur every 5 minutes. at the moment, when i do this:
prefect deployment create redis_to_postgres_deployment.py
prefect deployment execute redis_to_postgres_pipeline/redis-to-postgres-deployment
i see the deployment on the UI. the first one executes. but the ones that are scheduled to run every 5 minutes never end up executing. Any help here? My deployment.py file:
import os
from datetime import timedelta

from exchange_feeds.exchange_constants import EXCHANGEPATH
from prefect.deployments import DeploymentSpec
from prefect.orion.schemas.schedules import IntervalSchedule

POSTGRESPATH = os.path.join(EXCHANGEPATH, "feed_ingestor_to_postgres.py")

schedule = IntervalSchedule(interval=timedelta(minutes=5))

DeploymentSpec(
    name="redis-to-postgres-deployment",
    flow_location="redis_to_postgres_pipeline.py",
    tags=["phobos-check", "test"],
    parameters={"shell_task": POSTGRESPATH},
    schedule=schedule,
)
@Kevin Kho @Anna Geller any thoughts here?
k

Kevin Kho

03/03/2022, 10:15 PM
You need to leave Orion on to trigger those
prefect orion start
r

Rajan Subramanian

03/03/2022, 10:15 PM
my orion is on
k

Kevin Kho

03/03/2022, 10:16 PM
What prefect version are you on?
r

Rajan Subramanian

03/03/2022, 10:16 PM
prefect 2.0a13
i have all my processes running on a tmux terminal
k

Kevin Kho

03/03/2022, 10:21 PM
Which check with the team on chat. Were they submitting earlier?
r

Rajan Subramanian

03/03/2022, 10:21 PM
yea they were submitting yesterday i think
initially but now they stopped
k

Kevin Kho

03/03/2022, 10:23 PM
So there was an update in 2.0a13 where you will need work queues to pick up runs. The easiest way to make a work queue is
prefect work-queue create "global-queue"
in another process. And you can read more on this here . Work queues will be the way work is picked up moving forward
r

Rajan Subramanian

03/03/2022, 10:23 PM
oh i see ``````
will circle back once i try this. thanks
@Kevin Kho, i plan on deploying my recent code to production. curious if there are goign to be any more changes as i dont want the code to break in production
k

Kevin Kho

03/03/2022, 10:32 PM
Orion is still in technical preview so there will be many more changes and it’s not considered production stable yet
:upvote: 1
z

Zanie

03/03/2022, 10:59 PM
We publish breaking changes in the release notes so I’d recommend pinning to each alpha and reading them before upgrading.
r

Rajan Subramanian

03/04/2022, 4:53 PM
@Kevin Kho, @Zanie thanks, so does this imply that i can still release my code in production. and if any breaking changes are announced, i can fix those breaks on my code prior to upgrade?
k

Kevin Kho

03/04/2022, 4:54 PM
Yeah I guess that’s how it would work
r

Rajan Subramanian

03/04/2022, 4:54 PM
sounds good thanks