-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7ddb22
commit b5982c1
Showing
19 changed files
with
507 additions
and
299 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
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 @@ | ||
"""Task Tracking | ||
Revision ID: 78dbe7e38469 | ||
Revises: 7ccea01261f6 | ||
Create Date: 2023-10-15 23:40:50.593262 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "78dbe7e38469" | ||
down_revision = "7ccea01261f6" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
"task_queue_jobs", | ||
sa.Column("id", sa.Integer(), nullable=False), | ||
sa.Column("task_id", sa.String(), nullable=False), | ||
sa.Column("task_name", sa.String(), nullable=False), | ||
sa.Column( | ||
"status", | ||
sa.Enum( | ||
"PENDING", | ||
"STARTED", | ||
"SUCCESS", | ||
"FAILURE", | ||
name="taskstatus", | ||
native_enum=False, | ||
), | ||
nullable=False, | ||
), | ||
sa.Column("start_time", sa.DateTime(timezone=True), nullable=True), | ||
sa.Column( | ||
"register_time", | ||
sa.DateTime(timezone=True), | ||
server_default=sa.text("now()"), | ||
nullable=False, | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table("task_queue_jobs") |
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
Oops, something went wrong.
b5982c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
internal-search – ./
internal-search.vercel.app
internal-search-git-main-danswer.vercel.app
danswer.dev
internal-search-danswer.vercel.app
www.danswer.dev