tinybird 0.0.1.dev324__tar.gz → 0.0.1.dev325__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.dev324 → tinybird-0.0.1.dev325}/PKG-INFO +1 -1
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/__cli__.py +2 -2
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/copy.py +2 -14
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/deployment_common.py +22 -3
- tinybird-0.0.1.dev325/tinybird/tb/modules/job_common.py +15 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/sink.py +2 -14
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/PKG-INFO +1 -1
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/SOURCES.txt +1 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/setup.cfg +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/__cli__.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/ch_utils/constants.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/ch_utils/engine.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/check_pypi.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/client.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/config.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/connectors.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/context.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datafile/common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datafile/exceptions.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datafile/parse_connection.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datafile/parse_datasource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datafile/parse_pipe.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/datatypes.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/git_settings.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/prompts.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/service_datasources.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/sql.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/sql_template.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/sql_template_fmt.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/sql_toolset.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/syncasync.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/check_pypi.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/cli.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/client.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/config.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/__init__.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/animations.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/banner.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/command_agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/compactor.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/explore_agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/file_agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/memory.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/mock_agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/models.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/prompts.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/testing_agent.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/__init__.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/analyze.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/append.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/build.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/datafile.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/deploy.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/deploy_check.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/diff_resource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/execute_query.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/file.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/get_endpoint_stats.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/get_openapi_definition.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/mock.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/plan.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/request_endpoint.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/run_command.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/secret.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/test.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/utils.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/branch.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/build.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/build_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/cicd.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/cli.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/config.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/connection.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/create.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build_datasource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build_pipe.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/diff.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/fixture.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/format_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/format_datasource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/format_pipe.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/pipe_checker.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/playground.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/pull.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datasource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/deployment.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/deprecations.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/dev_server.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/endpoint.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/feedback_manager.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/info.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/infra.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/job.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/llm.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/llm_utils.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/local.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/local_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/local_logs.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/login.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/login_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/logout.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/materialization.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/mock.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/mock_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/open.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/pipe.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/project.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/regions.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/secret.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/secret_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/shell.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/table.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/test.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/test_common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/token.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/watch.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/workspace.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/auth.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/branch.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/cicd.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/cli.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/common.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/config.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/connection.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/datasource.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/exceptions.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/fmt.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/job.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/pipe.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/regions.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/tag.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/telemetry.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/test.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/tinyunit/tinyunit.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/workspace.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/workspace_members.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tornado_template.py +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/dependency_links.txt +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/entry_points.txt +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/requires.txt +0 -0
- {tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird.egg-info/top_level.txt +0 -0
|
@@ -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.dev325'
|
|
8
|
+
__revision__ = '0faab58'
|
|
@@ -12,12 +12,11 @@ from click import Context
|
|
|
12
12
|
|
|
13
13
|
from tinybird.datafile.common import get_name_version
|
|
14
14
|
from tinybird.tb.client import AuthNoTokenException, TinyB
|
|
15
|
-
from tinybird.tb.config import get_display_cloud_host
|
|
16
15
|
from tinybird.tb.modules.cli import cli
|
|
17
16
|
from tinybird.tb.modules.common import echo_safe_humanfriendly_tables_format_smart_table, wait_job
|
|
18
17
|
from tinybird.tb.modules.exceptions import CLIPipeException
|
|
19
18
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
20
|
-
from tinybird.tb.modules.
|
|
19
|
+
from tinybird.tb.modules.job_common import echo_job_url
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
@cli.group()
|
|
@@ -92,26 +91,15 @@ def copy_run(ctx: click.Context, pipe_name_or_id: str, wait: bool, mode: str, pa
|
|
|
92
91
|
click.echo(FeedbackManager.highlight(message=f"\n» Running on-demand copy '{pipe_name_or_id}'"))
|
|
93
92
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
94
93
|
config = ctx.ensure_object(dict)["config"]
|
|
95
|
-
env = ctx.ensure_object(dict)["env"]
|
|
96
94
|
|
|
97
95
|
try:
|
|
98
96
|
response = client.pipe_run(pipe_name_or_id, "copy", params, mode)
|
|
99
97
|
job_id = response["job"]["job_id"]
|
|
100
98
|
job_url = response["job"]["job_url"]
|
|
101
|
-
|
|
102
|
-
# In Tinybird Local, base URL is http://localhost:8001 internally, we need to replace it with the public one.
|
|
103
|
-
if env == "local":
|
|
104
|
-
job_url = f"{job_url.replace('http://localhost:8001', TB_LOCAL_ADDRESS)}?token={client.token}"
|
|
105
|
-
|
|
99
|
+
echo_job_url(client.token, client.host, config.get("name") or "", job_url)
|
|
106
100
|
target_datasource_id = response["tags"]["copy_target_datasource"]
|
|
107
101
|
target_datasource = client.get_datasource(target_datasource_id)
|
|
108
102
|
target_datasource_name = target_datasource["name"]
|
|
109
|
-
click.echo(FeedbackManager.gray(message="Job URL: ") + FeedbackManager.info(message=f"{job_url}"))
|
|
110
|
-
ui_host = get_display_cloud_host(client.host)
|
|
111
|
-
click.echo(
|
|
112
|
-
FeedbackManager.gray(message="Job dashboard URL: ")
|
|
113
|
-
+ FeedbackManager.info(message=f"{ui_host}/{config.get('name')}/jobs")
|
|
114
|
-
)
|
|
115
103
|
click.echo(FeedbackManager.success(message=f"✓ Copy to '{target_datasource_name}' job created"))
|
|
116
104
|
|
|
117
105
|
if wait:
|
|
@@ -16,6 +16,7 @@ from tinybird.tb.modules.common import (
|
|
|
16
16
|
sys_exit,
|
|
17
17
|
)
|
|
18
18
|
from tinybird.tb.modules.feedback_manager import FeedbackManager, bcolors
|
|
19
|
+
from tinybird.tb.modules.job_common import echo_job_url
|
|
19
20
|
from tinybird.tb.modules.project import Project
|
|
20
21
|
|
|
21
22
|
|
|
@@ -199,6 +200,7 @@ def create_deployment(
|
|
|
199
200
|
allow_destructive_operations: Optional[bool] = None,
|
|
200
201
|
ingest_hint: Optional[bool] = True,
|
|
201
202
|
output: Optional[str] = "human",
|
|
203
|
+
env: Optional[str] = "cloud",
|
|
202
204
|
) -> None:
|
|
203
205
|
# TODO: This code is duplicated in build_server.py
|
|
204
206
|
# Should be refactored to be shared
|
|
@@ -299,13 +301,30 @@ def create_deployment(
|
|
|
299
301
|
)
|
|
300
302
|
|
|
301
303
|
status = result.get("result")
|
|
302
|
-
|
|
303
|
-
|
|
304
|
+
host = get_display_cloud_host(client.host)
|
|
305
|
+
if status in ["success", "failed"]:
|
|
304
306
|
click.echo(
|
|
305
|
-
FeedbackManager.
|
|
307
|
+
FeedbackManager.gray(message="Deployment URL: ")
|
|
306
308
|
+ f"{bcolors.UNDERLINE}{host}/{config.get('name')}/deployments/{deployment.get('id')}{bcolors.ENDC}"
|
|
307
309
|
)
|
|
310
|
+
jobs = client.jobs()
|
|
311
|
+
deployment_job = next(
|
|
312
|
+
(
|
|
313
|
+
job
|
|
314
|
+
for job in jobs
|
|
315
|
+
if job.get("kind") == "deployment" and job.get("deployment_id") == deployment.get("id")
|
|
316
|
+
),
|
|
317
|
+
None,
|
|
318
|
+
)
|
|
319
|
+
if deployment_job:
|
|
320
|
+
echo_job_url(
|
|
321
|
+
token=client.token,
|
|
322
|
+
host=client.host,
|
|
323
|
+
workspace_name=config.get("name") or "",
|
|
324
|
+
job_url=deployment_job.get("job_url") or "",
|
|
325
|
+
)
|
|
308
326
|
|
|
327
|
+
if status == "success":
|
|
309
328
|
if wait:
|
|
310
329
|
click.echo(FeedbackManager.info(message="\n* Deployment submitted"))
|
|
311
330
|
else:
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import click
|
|
2
|
+
|
|
3
|
+
from tinybird.tb.config import get_display_cloud_host
|
|
4
|
+
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
5
|
+
from tinybird.tb.modules.local_common import TB_LOCAL_ADDRESS
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def echo_job_url(token: str, host: str, workspace_name: str, job_url: str):
|
|
9
|
+
if "localhost" in host:
|
|
10
|
+
job_url = f"{job_url.replace('http://localhost:8001', TB_LOCAL_ADDRESS)}?token={token}"
|
|
11
|
+
click.echo(FeedbackManager.gray(message="Job API URL: ") + FeedbackManager.info(message=f"{job_url}"))
|
|
12
|
+
ui_host = get_display_cloud_host(host)
|
|
13
|
+
click.echo(
|
|
14
|
+
FeedbackManager.gray(message="Jobs URL: ") + FeedbackManager.info(message=f"{ui_host}/{workspace_name}/jobs")
|
|
15
|
+
)
|
|
@@ -7,12 +7,11 @@ from click import Context
|
|
|
7
7
|
|
|
8
8
|
from tinybird.datafile.common import get_name_version
|
|
9
9
|
from tinybird.tb.client import AuthNoTokenException, TinyB
|
|
10
|
-
from tinybird.tb.config import get_display_cloud_host
|
|
11
10
|
from tinybird.tb.modules.cli import cli
|
|
12
11
|
from tinybird.tb.modules.common import echo_safe_humanfriendly_tables_format_smart_table, wait_job
|
|
13
12
|
from tinybird.tb.modules.exceptions import CLIPipeException
|
|
14
13
|
from tinybird.tb.modules.feedback_manager import FeedbackManager
|
|
15
|
-
from tinybird.tb.modules.
|
|
14
|
+
from tinybird.tb.modules.job_common import echo_job_url
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
@cli.group()
|
|
@@ -87,23 +86,12 @@ def sink_run(ctx: click.Context, pipe_name_or_id: str, wait: bool, mode: str, pa
|
|
|
87
86
|
click.echo(FeedbackManager.highlight(message=f"\n» Running sink '{pipe_name_or_id}'"))
|
|
88
87
|
client: TinyB = ctx.ensure_object(dict)["client"]
|
|
89
88
|
config = ctx.ensure_object(dict)["config"]
|
|
90
|
-
env = ctx.ensure_object(dict)["env"]
|
|
91
89
|
|
|
92
90
|
try:
|
|
93
91
|
response = client.pipe_run(pipe_name_or_id, "sink", params, mode)
|
|
94
92
|
job_id = response["job"]["id"]
|
|
95
93
|
job_url = response["job"]["job_url"]
|
|
96
|
-
|
|
97
|
-
# In Tinybird Local, base URL is http://localhost:8001 internally, we need to replace it with the public one.
|
|
98
|
-
if env == "local":
|
|
99
|
-
job_url = f"{job_url.replace('http://localhost:8001', TB_LOCAL_ADDRESS)}?token={client.token}"
|
|
100
|
-
click.echo(FeedbackManager.gray(message="Job URL: ") + FeedbackManager.info(message=f"{job_url}"))
|
|
101
|
-
|
|
102
|
-
ui_host = get_display_cloud_host(client.host)
|
|
103
|
-
click.echo(
|
|
104
|
-
FeedbackManager.gray(message="Job dashboard URL: ")
|
|
105
|
-
+ FeedbackManager.info(message=f"{ui_host}/{config.get('name')}/jobs")
|
|
106
|
-
)
|
|
94
|
+
echo_job_url(client.token, client.host, config.get("name") or "", job_url)
|
|
107
95
|
click.echo(FeedbackManager.success(message="✓ Sink job created"))
|
|
108
96
|
|
|
109
97
|
if wait:
|
|
@@ -55,6 +55,7 @@ tinybird/tb/modules/feedback_manager.py
|
|
|
55
55
|
tinybird/tb/modules/info.py
|
|
56
56
|
tinybird/tb/modules/infra.py
|
|
57
57
|
tinybird/tb/modules/job.py
|
|
58
|
+
tinybird/tb/modules/job_common.py
|
|
58
59
|
tinybird/tb/modules/llm.py
|
|
59
60
|
tinybird/tb/modules/llm_utils.py
|
|
60
61
|
tinybird/tb/modules/local.py
|
|
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
|
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/deploy_check.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/diff_resource.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/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.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/agent/tools/request_endpoint.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/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
|
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/build_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/format_common.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb/modules/datafile/format_datasource.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/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.dev324 → tinybird-0.0.1.dev325}/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.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/tinyunit/tinyunit.py
RENAMED
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/tinybird/tb_cli_modules/tinyunit/tinyunit_lib.py
RENAMED
|
File without changes
|
|
File without changes
|
{tinybird-0.0.1.dev324 → tinybird-0.0.1.dev325}/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
|