-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* poetry updates * update memory management * fixed tests * bulk operations
- Loading branch information
Showing
11 changed files
with
189 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
grai-server/app/connections/migrations/0031_alter_connector_slug_alter_run_status.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Django 4.2.11 on 2024-05-01 00:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("connections", "0030_alter_connector_options_connector_priority_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="connector", | ||
name="slug", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("postgres", "Postgres"), | ||
("snowflake", "Snowflake"), | ||
("dbt", "dbt"), | ||
("dbt_cloud", "dbt Cloud"), | ||
("yaml_file", "YAML"), | ||
("mssql", "Microsoft SQL Server"), | ||
("bigquery", "Google BigQuery"), | ||
("fivetran", "Fivetran"), | ||
("mysql", "MySQL"), | ||
("redshift", "Amazon Redshift"), | ||
("metabase", "Metabase"), | ||
("looker", "Looker"), | ||
("openlineage", "OpenLineage"), | ||
("flatfile", "Flat File"), | ||
("cube", "Cube"), | ||
], | ||
max_length=255, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="run", | ||
name="status", | ||
field=models.CharField( | ||
choices=[("pending", "Pending"), ("running", "Running"), ("success", "Success"), ("error", "Error")], | ||
default="pending", | ||
max_length=255, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,6 +148,7 @@ def execute_run(run: Run): | |
) | ||
|
||
run.status = "success" | ||
|
||
run.finished_at = timezone.now() | ||
run.save() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.