Garren Moore
08/30/2024, 9:04 PMDeployment.build_from_flow()
to apply deployments. Now, we’ve transitioned to flow.deploy()
.
However, we’re having issues with schedules. When we set a schedule in the UI for a deployed flow, the next time we run flow.deploy()
(with no schedule parameters) applied to that same deployment, the schedule is wiped out. With Deployment.build_from_flow()
, when a schedule didn’t exist as a parameter, the schedule persisted on the server.
CC @Aimee McManusGarren Moore
08/30/2024, 9:18 PMDeployment.build_from_flow()
has a default = True
boolean parameter:
load_existing: if True, load any settings that may already be configured for
the named deployment server-side (e.g., schedules, default parameter
values, etc.)
whereas flow.deploy()
has no such discernible functionality.
This means to me that schedules must be maintained in the codebase in order to be persisted after an environment deploy. Unless I’m incorrect (very possible, and happy to be), this seems like a step in the wrong direction.Chris White
.deploy
is currently a workflows-as-code approach (designed with CI/CD in mind) that ensures your workflow state is exactly as it is defined in code. That being said, we realize some folks take a different approach so are discussing our most viable and maintainable optionsGarren Moore
09/03/2024, 3:08 PMDeployment.build_from_flow()
and when in your best estimate would we see such a solution?
You can understand that I will have to sell this to the org, which hasn’t habituated involving engineering to make minor scheduling adjustments.Chris White
Garren Moore
09/03/2024, 3:40 PMChris White
Garren Moore
09/03/2024, 3:44 PM