Skip to content

Commit fc2731b

Browse files
Merge branch 'main' into feat/add-fabric-engine
2 parents 7cb8447 + afb7907 commit fc2731b

22 files changed

+1535
-1081
lines changed

.circleci/continue_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172

173173
ui_test:
174174
docker:
175-
- image: mcr.microsoft.com/playwright:v1.53.2-jammy
175+
- image: mcr.microsoft.com/playwright:v1.54.1-jammy
176176
resource_class: medium
177177
steps:
178178
- halt_unless_client
117 KB
Loading
127 KB
Loading
231 KB
Loading
18.5 KB
Loading
56.1 KB
Loading

docs/cloud/features/upgrades.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Upgrading Tobiko Cloud
2+
3+
Tobiko regularly releases new versions of Tobiko Cloud that add features and improve reliability.
4+
5+
This page describes how to upgrade your Tobiko Cloud projects to a newer version.
6+
7+
## Upgrade availability
8+
9+
Navigate to `Settings > Upgrade` in the Tobiko Cloud UI to determine whether a new version of Tobiko Cloud is available for your project.
10+
11+
If your project is already up to date, you will see a grey message:
12+
13+
![Tobiko Cloud Upgrade Already Up-to-Date](./upgrade/upgrade-ui-up-to-date.png)
14+
15+
If a new version is available for your project, the page will include a notification box, version, and blue Upgrade Now button:
16+
17+
![Tobiko Cloud Upgrade Page](./upgrade/upgrade-ui-available.png)
18+
19+
## Upgrading a project
20+
21+
On the Upgrade page, you can choose to upgrade to the latest version or specify a custom version.
22+
23+
!!! info "Upgrade Permissions"
24+
Only users with Tobiko Cloud `Admin` permissions can perform upgrades.
25+
26+
!!! danger "Upgrade Side Effects"
27+
The upgrade process may take a few minutes to complete. During this time, your Tobiko Cloud project will be unavailable.
28+
29+
Any in-progress plans and runs will be aborted:
30+
31+
- Aborted plans will be stopped, and you must **manually** start them again.
32+
- Aborted runs will be automatically resumed shortly after the upgrade completes.
33+
34+
To avoid unexpected interruptions, please notify your team before starting the upgrade.
35+
36+
### Latest Version
37+
38+
Click the **Upgrade Now** button and confirm to begin upgrading your project to the latest version.
39+
40+
![Tobiko Cloud Upgrade Page](./upgrade/upgrade-ui-latest.png)
41+
42+
### Custom Version
43+
44+
We recommend upgrading your Tobiko Cloud project to the latest version, but you may prefer to upgrade to a specific version.
45+
46+
For example, consider a team that has separate staging and production Tobiko Cloud projects. They upgrade the staging project first, run tests, and only upgrade the production project after verifying that staging works as expected.
47+
48+
If a new version of Tobiko Cloud is released during this testing period, the latest available version will not match the version tested in staging. The team can specify a custom Tobiko Cloud version to upgrade production to the specific version that was already tested in staging.
49+
50+
To specify a custom version, select the **Custom** tab on the Upgrade page and enter your desired version in the text box.
51+
52+
![Tobiko Cloud Upgrade Custom Version](./upgrade/upgrade-ui-custom-version.png)
53+
54+
Make sure you are entering a valid custom version by:
55+
56+
- Entering the custom version **without** the leading `v`
57+
- Confirming that the version is valid and later than the current version of the project
58+
59+
If your custom version is not valid, Tobiko Cloud will display an error message.
60+
61+
After entering the custom version, click the **Upgrade Now** button and confirm to begin the upgrade process.
62+
63+
## Upgrade Progress
64+
65+
Tobiko Cloud will display a progress page while the upgrade is in progress:
66+
67+
![Tobiko Cloud Upgrade Progress](./upgrade/upgrade-ui-progress.png)
68+
69+
Once the upgrade is complete, Tobiko Cloud will automatically redirect you back to your upgraded project.
70+
71+
## Upgrade Support
72+
73+
If you encounter an issue during the upgrade process, please [report an incident](./incident_reporting.md). Our support team will follow up as soon as possible.
74+
75+
For the quickest response, we recommend upgrading Monday through Friday between 9am and 5pm PST.

docs/concepts/models/python_models.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,35 @@ It's also possible to use the `@EACH` macro, combined with a global list variabl
394394
...
395395
```
396396

397+
## Using macros in model properties
398+
399+
Python models support macro variables in model properties. However, special care must be taken when the macro variable appears within a string.
400+
401+
For example when using macro variables inside cron expressions, you need to wrap the entire expression in quotes and prefix it with `@` to ensure proper parsing:
402+
403+
```python linenums="1"
404+
# Correct: Wrap the cron expression containing a macro variable
405+
@model(
406+
"my_model",
407+
cron="@'*/@{mins} * * * *'", # Note the @'...' syntax
408+
...
409+
)
410+
411+
# This also works with blueprint variables
412+
@model(
413+
"@{customer}.scheduled_model",
414+
cron="@'0 @{hour} * * *'",
415+
blueprints=[
416+
{"customer": "customer_1", "hour": 2}, # Runs at 2 AM
417+
{"customer": "customer_2", "hour": 8}, # Runs at 8 AM
418+
],
419+
...
420+
)
421+
422+
```
423+
424+
This is necessary because cron expressions often use `@` for aliases (like `@daily`, `@hourly`), which can conflict with SQLMesh's macro syntax.
425+
397426
## Examples
398427
### Basic
399428
The following is an example of a Python model returning a static Pandas DataFrame.

mkdocs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ nav:
112112
- "Getting Started": cloud/tcloud_getting_started.md
113113
- Cloud Features:
114114
- "Alerts & Notifications": cloud/features/alerts_notifications.md
115-
- cloud/features/debugger_view.md
116115
- cloud/features/data_catalog.md
116+
- cloud/features/debugger_view.md
117+
- Maintenance:
118+
- cloud/features/incident_reporting.md
119+
- cloud/features/upgrades.md
117120
- Scheduler:
118121
- "Cloud": cloud/features/scheduler/scheduler.md
119122
- "Cloud Hybrid Deployments":
@@ -125,8 +128,8 @@ nav:
125128
- Security:
126129
- cloud/features/security/security.md
127130
- cloud/features/security/single_sign_on.md
128-
- cloud/features/incident_reporting.md
129-
- cloud/features/xdb_diffing.md
131+
- Tools:
132+
- cloud/features/xdb_diffing.md
130133
# - Observability:
131134
# - cloud/features/observability/overview.md
132135
# - cloud/features/observability/model_freshness.md

0 commit comments

Comments
 (0)