-
Notifications
You must be signed in to change notification settings - Fork 3
Task Master #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Task Master #241
Changes from 22 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0f13b65
clean task queue
LennartSchmidtKern 711af52
remove task endpoints
LennartSchmidtKern f7a7ca9
alembic
LennartSchmidtKern 2ffd90b
add itnernal endpoint dummy
LennartSchmidtKern bc96da4
offer task executions
LennartSchmidtKern 7ab0a01
information source endpoint
LennartSchmidtKern d2ffe08
return payload id
LennartSchmidtKern 4a91bdd
information source, project id handling
LennartSchmidtKern abc0fbb
import wizard org ids
LennartSchmidtKern ca73f3e
project id tokenizer
LennartSchmidtKern 2ec9828
attribute calculation, embedding
LennartSchmidtKern 9097b80
embedding
LennartSchmidtKern 8d81ae0
data slice
LennartSchmidtKern c8c686f
gate removal
LennartSchmidtKern ae9467f
remove start gates
LennartSchmidtKern 255e2d6
task executions, wizard improvements
LennartSchmidtKern bd34f95
improve information source
LennartSchmidtKern 25d6a81
clean
LennartSchmidtKern b7c541d
project id
LennartSchmidtKern 8590e19
merge + model
LennartSchmidtKern 0a08a62
model
LennartSchmidtKern cdfb760
task deletion
LennartSchmidtKern 9f0c187
replace alembic + model
LennartSchmidtKern 152b05a
PR updates
LennartSchmidtKern ed0d0cc
blank lines
LennartSchmidtKern af28a13
clean
LennartSchmidtKern 25edf7e
Merge branch 'dev' into task-master
LennartSchmidtKern 99b2030
model merge
LennartSchmidtKern 573829d
test
LennartSchmidtKern 1e8eef4
model dev
LennartSchmidtKern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
alembic/versions/af5c30d91685_remove_project_id_task_queue.py
This file contains hidden or 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,51 @@ | ||
"""remove project id task queue | ||
|
||
Revision ID: af5c30d91685 | ||
Revises: 0d587af700ce | ||
Create Date: 2024-08-04 15:42:26.747671 | ||
|
||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'af5c30d91685' | ||
down_revision = '0d587af700ce' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('macro_execution_summary', | ||
sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False), | ||
sa.Column('organization_id', postgresql.UUID(as_uuid=True), nullable=True), | ||
sa.Column('creation_month', sa.Date(), nullable=True), | ||
sa.Column('macro_type', sa.String(), nullable=True), | ||
sa.Column('execution_count', sa.Integer(), nullable=True), | ||
sa.Column('processed_files_count', sa.Integer(), nullable=True), | ||
sa.ForeignKeyConstraint(['organization_id'], ['organization.id'], ondelete='CASCADE'), | ||
sa.PrimaryKeyConstraint('id'), | ||
sa.UniqueConstraint('organization_id', 'creation_month', 'macro_type', name='unique_macro_summary'), | ||
schema='cognition' | ||
) | ||
op.create_index(op.f('ix_cognition_macro_execution_summary_creation_month'), 'macro_execution_summary', ['creation_month'], unique=False, schema='cognition') | ||
LennartSchmidtKern marked this conversation as resolved.
Show resolved
Hide resolved
|
||
op.create_index(op.f('ix_cognition_macro_execution_summary_organization_id'), 'macro_execution_summary', ['organization_id'], unique=False, schema='cognition') | ||
op.add_column('task_queue', sa.Column('organization_id', postgresql.UUID(as_uuid=True), nullable=True)) | ||
op.drop_constraint('task_queue_project_id_fkey', 'task_queue', type_='foreignkey') | ||
op.create_foreign_key(None, 'task_queue', 'organization', ['organization_id'], ['id'], ondelete='CASCADE') | ||
op.drop_column('task_queue', 'project_id') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('task_queue', sa.Column('project_id', postgresql.UUID(), autoincrement=False, nullable=True)) | ||
op.drop_constraint(None, 'task_queue', type_='foreignkey') | ||
op.create_foreign_key('task_queue_project_id_fkey', 'task_queue', 'project', ['project_id'], ['id'], ondelete='CASCADE') | ||
op.drop_column('task_queue', 'organization_id') | ||
op.drop_index(op.f('ix_cognition_macro_execution_summary_organization_id'), table_name='macro_execution_summary', schema='cognition') | ||
op.drop_index(op.f('ix_cognition_macro_execution_summary_creation_month'), table_name='macro_execution_summary', schema='cognition') | ||
op.drop_table('macro_execution_summary', schema='cognition') | ||
# ### end Alembic commands ### |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.