tinybird 0.0.1.dev312__tar.gz → 0.0.1.dev314__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/service_datasources.py +11 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/build.py +1 -1
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/deployment_common.py +3 -29
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/dev_server.py +2 -3
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/local.py +6 -4
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/setup.cfg +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/file_agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/mock_agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/file.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/copy.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/environment.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/local_logs.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/sink.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/SOURCES.txt +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -906,6 +906,17 @@ def get_organization_service_datasources() -> List[Dict[str, Any]]:
|
|
|
906
906
|
{"name": "active_minutes", "type": "Float64"},
|
|
907
907
|
],
|
|
908
908
|
},
|
|
909
|
+
{
|
|
910
|
+
"name": "organization.shared_infra_active_seconds",
|
|
911
|
+
"description": "Contains information about vCPU active seconds consumption aggregated by second for all Organization workspaces. Only available for Developer and Enterprise plans in shared infrastructure.",
|
|
912
|
+
"dateColumn": "second",
|
|
913
|
+
"columns": [
|
|
914
|
+
{"name": "second", "type": "DateTime"},
|
|
915
|
+
{"name": "organization_id", "type": "String"},
|
|
916
|
+
{"name": "organization_name", "type": "String"},
|
|
917
|
+
{"name": "cpu_time", "type": "Float64"},
|
|
918
|
+
],
|
|
919
|
+
},
|
|
909
920
|
{
|
|
910
921
|
"name": "organization.shared_infra_qps_overages",
|
|
911
922
|
"description": "Contains information about QPS consumption and overages aggregated by second for all Organization workspaces. Only available for Developer and Enterprise plans in shared infrastructure.",
|
|
@@ -4,5 +4,5 @@ __description__ = 'Tinybird Command Line Tool'
|
|
|
4
4
|
__url__ = 'https://www.tinybird.co/docs/forward/commands'
|
|
5
5
|
__author__ = 'Tinybird'
|
|
6
6
|
__author_email__ = 'support@tinybird.co'
|
|
7
|
-
__version__ = '0.0.1.
|
|
8
|
-
__revision__ = '
|
|
7
|
+
__version__ = '0.0.1.dev314'
|
|
8
|
+
__revision__ = 'c7acb8a'
|
|
@@ -70,7 +70,7 @@ def build(ctx: click.Context, watch: bool) -> None:
|
|
|
70
70
|
|
|
71
71
|
@cli.command("dev", help="Build the project server side and watch for changes.")
|
|
72
72
|
@click.option("--data-origin", type=str, default="", help="Data origin: local or cloud")
|
|
73
|
-
@click.option("--ui", is_flag=True, default=
|
|
73
|
+
@click.option("--ui/--skip-ui", is_flag=True, default=True, help="Connect your local project to Tinybird UI")
|
|
74
74
|
@click.pass_context
|
|
75
75
|
def dev(ctx: click.Context, data_origin: str, ui: bool) -> None:
|
|
76
76
|
obj: Dict[str, Any] = ctx.ensure_object(dict)
|
|
@@ -158,8 +158,6 @@ def promote_deployment(host: Optional[str], headers: dict, wait: bool, ingest_hi
|
|
|
158
158
|
)
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
# TODO(eclbg): This logic should be in the server, and there should be a dedicated endpoint for discarding a
|
|
162
|
-
# deployment
|
|
163
161
|
def discard_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
164
162
|
TINYBIRD_API_URL = f"{host}/v1/deployments"
|
|
165
163
|
result = api_fetch(TINYBIRD_API_URL, headers=headers)
|
|
@@ -173,33 +171,9 @@ def discard_deployment(host: Optional[str], headers: dict, wait: bool) -> None:
|
|
|
173
171
|
click.echo(FeedbackManager.error(message="Only one deployment found"))
|
|
174
172
|
return
|
|
175
173
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
click.echo(FeedbackManager.error(message="Previous deployment is not ready"))
|
|
180
|
-
deploy_errors = previous_deployment.get("errors", [])
|
|
181
|
-
for deploy_error in deploy_errors:
|
|
182
|
-
click.echo(FeedbackManager.error(message=f"* {deploy_error}"))
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
if previous_deployment.get("live"):
|
|
186
|
-
click.echo(FeedbackManager.error(message="Previous deployment is already live"))
|
|
187
|
-
else:
|
|
188
|
-
click.echo(FeedbackManager.success(message="Promoting previous deployment"))
|
|
189
|
-
|
|
190
|
-
TINYBIRD_API_URL = f"{host}/v1/deployments/{previous_deployment.get('id')}/set-live"
|
|
191
|
-
result = api_post(TINYBIRD_API_URL, headers=headers)
|
|
192
|
-
|
|
193
|
-
click.echo(FeedbackManager.success(message="Removing current deployment"))
|
|
194
|
-
|
|
195
|
-
TINYBIRD_API_URL = f"{host}/v1/deployments/{current_deployment.get('id')}"
|
|
196
|
-
r = requests.delete(TINYBIRD_API_URL, headers=headers)
|
|
197
|
-
result = r.json()
|
|
198
|
-
logging.debug(json.dumps(result, indent=2))
|
|
199
|
-
if result.get("error"):
|
|
200
|
-
click.echo(FeedbackManager.error(message=result.get("error")))
|
|
201
|
-
sys_exit("deployment_error", result.get("error", "Unknown error"))
|
|
202
|
-
|
|
174
|
+
current_deployment = deployments[1]
|
|
175
|
+
# Deployment Job now triggers deployment deletion when a deployment fails.
|
|
176
|
+
# We left the current behaviorto let the user know that the discard process has finished.
|
|
203
177
|
click.echo(FeedbackManager.success(message="Discard process successfully started"))
|
|
204
178
|
|
|
205
179
|
if wait:
|
|
@@ -44,10 +44,9 @@ class DevServer(http.server.HTTPServer):
|
|
|
44
44
|
|
|
45
45
|
try:
|
|
46
46
|
super().__init__(("", port), DevHandler)
|
|
47
|
-
click.echo(FeedbackManager.success(message=f"✓ Dev server running on http://localhost:{port}"))
|
|
48
47
|
click.echo(
|
|
49
48
|
FeedbackManager.info(
|
|
50
|
-
message=f"
|
|
49
|
+
message=f"✓ Access your project at https://cloud.tinybird.co/local/{TB_LOCAL_PORT}/{project.workspace_name}/project\n"
|
|
51
50
|
)
|
|
52
51
|
)
|
|
53
52
|
except OSError as e:
|
|
@@ -254,7 +253,7 @@ def start_server(project: Project, tb_client: TinyB, process: Callable, build_st
|
|
|
254
253
|
"""
|
|
255
254
|
|
|
256
255
|
try:
|
|
257
|
-
click.echo(FeedbackManager.highlight(message="»
|
|
256
|
+
click.echo(FeedbackManager.highlight(message="» Exposing your project to Tinybird UI..."))
|
|
258
257
|
|
|
259
258
|
# Create and start the server
|
|
260
259
|
server = DevServer(process, project, build_status, tb_client)
|
|
@@ -196,10 +196,11 @@ def remove() -> None:
|
|
|
196
196
|
help="Workspace token to use for the Tinybird Local container.",
|
|
197
197
|
)
|
|
198
198
|
@click.option(
|
|
199
|
-
"--watch",
|
|
199
|
+
"--daemon/--watch",
|
|
200
|
+
"-d/-w",
|
|
200
201
|
default=False,
|
|
201
202
|
is_flag=True,
|
|
202
|
-
help="
|
|
203
|
+
help="Run Tinybird Local in the background.",
|
|
203
204
|
)
|
|
204
205
|
def start(
|
|
205
206
|
use_aws_creds: bool,
|
|
@@ -207,7 +208,7 @@ def start(
|
|
|
207
208
|
skip_new_version: bool,
|
|
208
209
|
user_token: str,
|
|
209
210
|
workspace_token: str,
|
|
210
|
-
|
|
211
|
+
daemon: bool,
|
|
211
212
|
) -> None:
|
|
212
213
|
"""Start Tinybird Local"""
|
|
213
214
|
if volumes_path is not None:
|
|
@@ -217,10 +218,11 @@ def start(
|
|
|
217
218
|
|
|
218
219
|
click.echo(FeedbackManager.highlight(message="» Starting Tinybird Local..."))
|
|
219
220
|
docker_client = get_docker_client()
|
|
221
|
+
watch = not daemon
|
|
220
222
|
start_tinybird_local(
|
|
221
223
|
docker_client, use_aws_creds, volumes_path, skip_new_version, user_token, workspace_token, watch=watch
|
|
222
224
|
)
|
|
223
|
-
if
|
|
225
|
+
if daemon:
|
|
224
226
|
click.echo(FeedbackManager.success(message="✓ Tinybird Local is ready!"))
|
|
225
227
|
|
|
226
228
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/execute_query.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/agent/tools/run_command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/datafile/pipe_checker.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb/modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev312 → tinybird-0.0.1.dev314}/tinybird/tb_cli_modules/workspace_members.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|