Repository: PrefectHQ/prefect

Issue:
Cloud PR references Core
See https://github.com/PrefectHQ/cloud/pull/546 for more details


Discussion:

Resolving patch:
diff --git a/src/prefect/client/client.py b/src/prefect/client/client.py
--- a/src/prefect/client/client.py
+++ b/src/prefect/client/client.py
@@ -304,7 +304,7 @@ def deploy(
         flow: "Flow",
         project_name: str,
         build: bool = True,
-        set_schedule_inactive: bool = False,
+        set_schedule_active: bool = True,
     ) -> str:
         """
         Push a new flow to Prefect Cloud
@@ -314,9 +314,9 @@ def deploy(
             - project_name (str): the project that should contain this flow.
             - build (bool, optional): if `True`, the flow's environment is built
                 prior to serialization; defaults to `True`
-            - set_schedule_inactive (bool, optional): if `True`, will set the
+            - set_schedule_active (bool, optional): if `False`, will set the
                 schedule to inactive in the database to prevent auto-scheduling runs (if the Flow has a schedule).
-                Defaults to `False`. This can be changed later.
+                Defaults to `True`. This can be changed later.
 
         Returns:
             - str: the ID of the newly-deployed flow
@@ -355,7 +355,7 @@ def deploy(
             input=dict(
                 projectId=project[0].id,
                 serializedFlow=flow.serialize(build=build),
-                setScheduleInactive=set_schedule_inactive,
+                setScheduleActive=set_schedule_active,
             ),
         )  # type: Any
         return res.data.createFlow.id
diff --git a/src/prefect/core/flow.py b/src/prefect/core/flow.py
--- a/src/prefect/core/flow.py
+++ b/src/prefect/core/flow.py
@@ -1349,7 +1349,7 @@ def generate_local_task_ids(
     # Deployment ------------------------------------------------------------------
 
     def deploy(
-        self, project_name: str, build: bool = True, set_schedule_inactive: bool = False
+        self, project_name: str, build: bool = True, set_schedule_active: bool = True
     ) -> str:
         """
         Deploy the flow to Prefect Cloud
@@ -1358,9 +1358,9 @@ def deploy(
             - project_name (str): the project that should contain this flow.
             - build (bool, optional): if `True`, the flow's environment is built
                 prior to serialization; defaults to `True`
-            - set_schedule_inactive (bool, optional): if `True`, will set the
+            - set_schedule_active (bool, optional): if `False`, will set the
                 schedule to inactive in the database to prevent auto-scheduling runs (if the Flow has a schedule).
-                Defaults to `False`. This can be changed later.
+                Defaults to `True`. This can be changed later.
 
         Returns:
             - str: the ID of the flow that was deployed
@@ -1370,7 +1370,7 @@ def deploy(
             flow=self,
             build=build,
             project_name=project_name,
-            set_schedule_inactive=set_schedule_inactive,
+            set_schedule_active=set_schedule_active,
         )
         return deployed_flow
 


Test patch: