-
Notifications
You must be signed in to change notification settings - Fork 0
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
Execute jobs #278
Execute jobs #278
Conversation
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.
@jaypark25 this looks really good. Very impressed. I'd like you to make some changes/remove files and ping me again. I'd like to test locally as well before i merge.
backend/README.md
Outdated
@@ -107,7 +112,7 @@ We use SqlAlchemy and Alembic for database migrations. The database is hosted on | |||
2. Run the following command to generate a new migration: | |||
|
|||
```bash | |||
uv run --env-file .env alembic revision --autogenerate -m "migration message" | |||
d |
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.
backend/.gitignore
Outdated
node_modules/ | ||
|
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.
should not be needed to be added. if u have node_modules in your backend folder, you might have accidentally ran yarn install
in it; you can delete node_modules in the backend if you have one in your local
backend/uv.lock
Outdated
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.
Btw for easy deployment - CD does not use UV and it attempts to install deps from requirements.txt
- we use UV and to help deployment to be aware of the new package, run uv pip freeze > requirements.txt
(i think that is the right command)
then commit and push the added .txt file
backend/package.json
Outdated
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.
delete file? package.json is for Node.js
backend/package-lock.json
Outdated
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.
delete file? package-lock.json is for Node.js
backend/main.py
Outdated
@@ -13,6 +13,7 @@ | |||
from routers.routes.query_history import query_history_router | |||
from routers.routes.users import user_router | |||
from routers.routes.invites import invite_router | |||
from core.scheduler import init_scheduler |
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.
does this file need this import?
backend/core/jobs/print_hi.py
Outdated
@@ -0,0 +1,30 @@ | |||
from pydantic import BaseModel | |||
|
|||
class Print_HiParams(BaseModel): |
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.
is the naming convention here <camelcase filename>Params
?
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.
yes -- should we change?
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.
im changing pascal
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.
Thanks for the edits. im merging it. since it's not used internally yet. on Sat we can try adding a "embed" job with shreyas on post creation cc @xenshreyas
* feat: implement job scheduler and execution system with runnable * deleted test file * cleaned up code from PR, added a sample job for dev guidelining
* feat: implement job scheduler and execution system with runnable * deleted test file * cleaned up code from PR, added a sample job for dev guidelining
Create blank issue template (#246) Create blank issue tempalte Cleanup Migration (#238) * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * merge heads 129 create privacy policy and terms of service (#248) * Add terms and privacy pages * Remove unneeded exports * fix lint * Fix errors in text and change wording * Create SECURITY.md (#243) * Create blank issue template (#246) Create blank issue tempalte * Create bug reporting issue template (#244) * Update issue templates * Update bug-report.md * Reimplement privacy and terms using MDX components * moved mdx types to dev deps --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Co-authored-by: Armin Talaie <[email protected]> Remove duplicated blank issue template (#250) remove duplicated blank issue template desktop app setup with Tauri (#252) Tags API and migrations (#237) * migrations for roles and tags * migration works just update head * minor db model changes for semantics and due to errors * roles init commit * implemented several more apis * updated migrations to remove roles, commented out roles db and created new migration for only tags * init first get tag for roles * imports * comment out role code * commit to fix migration head * added post_tag and doc_tags tables * place migrations on top of new head * updated foreign key for post ID from INT to UUID (to match the changed type from merge) * added back queryhistory model * brought back get_all_tags from merge * comment out more courserole stuff * create tag endpoint * added general crud for tags * renamed tags specific to courses, course tags * added post_tags * fixed all errors with migration * minor refactor for post tags * added document tagging * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * updated to grab authenticated user for created_by field * removed commented out roles * updated migrations, removed more role stuff * clean up + include pydantic schema * removed role imports * remove optional for course_id * updated migration head after pulling cleanup * kept enum model and fixed small insert error with post tag + doc tag * merge migrations from dev * merge heads for db * formatting * fixed type issues --------- Co-authored-by: harshamin <[email protected]> Co-authored-by: Armin Talaie <[email protected]> Co-authored-by: Arman Moztarzadeh <[email protected]> Update issue templates (#247) * Update issue templates * Update feature_request.md * Update feature_request.md Setting Theme Refresh (#258) * added revalidate route for cache, used when theme gets updated ya feel * real time setting updating, so real, fr fr * yarn format and lint Landing Page Initialization [V1] (#259) * init landing page * fix styling for mobile * switch to light theme Include type field for issue templates (#261) * Add type field to issue templates * Update feature issue tempalte * small change * Include related issues for feature re-order items in header fix fix button styling Updated Settings Page (#276) * better routing * formatting * migrated settings mgmt state to zustand + enhanced settings page * replaced coursecontext with coursestore * theme tuning User management (#275) * user management * new files * updated migrations --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Execute jobs (#278) * feat: implement job scheduler and execution system with runnable * deleted test file * cleaned up code from PR, added a sample job for dev guidelining
* feat: implement job scheduler and execution system with runnable * deleted test file * cleaned up code from PR, added a sample job for dev guidelining
* Add basic websocket implementation * revert migration file * Fix merge conflicts * Add temporary frontend files * add basic websocket implementation * Reset migrations and add template code for chat * Fix overlap by adding spacing and changing font size (#245) * Fix overlap by adding spacing and changing font size * fix lint * Create SECURITY.md (#243) * Create blank issue template (#246) Create blank issue tempalte * Create bug reporting issue template (#244) * Update issue templates * Update bug-report.md * Cleanup Migration (#238) * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * merge heads * 129 create privacy policy and terms of service (#248) * Add terms and privacy pages * Remove unneeded exports * fix lint * Fix errors in text and change wording * Create SECURITY.md (#243) * Create blank issue template (#246) Create blank issue tempalte * Create bug reporting issue template (#244) * Update issue templates * Update bug-report.md * Reimplement privacy and terms using MDX components * moved mdx types to dev deps --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Co-authored-by: Armin Talaie <[email protected]> * Remove duplicated blank issue template (#250) remove duplicated blank issue template * Create blank issue template (#246) Create blank issue tempalte * Cleanup Migration (#238) * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * merge heads * 129 create privacy policy and terms of service (#248) * Add terms and privacy pages * Remove unneeded exports * fix lint * Fix errors in text and change wording * Create SECURITY.md (#243) * Create blank issue template (#246) Create blank issue tempalte * Create bug reporting issue template (#244) * Update issue templates * Update bug-report.md * Reimplement privacy and terms using MDX components * moved mdx types to dev deps --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Co-authored-by: Armin Talaie <[email protected]> * Remove duplicated blank issue template (#250) remove duplicated blank issue template * Implement functional chat room * Add token verification * Remove supabase channel listening and use websockets to broadcast * Rename files and change naming conventions * Create blank issue template (#246) Create blank issue tempalte * Cleanup Migration (#238) * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * merge heads * 129 create privacy policy and terms of service (#248) * Add terms and privacy pages * Remove unneeded exports * fix lint * Fix errors in text and change wording * Create SECURITY.md (#243) * Create blank issue template (#246) Create blank issue tempalte * Create bug reporting issue template (#244) * Update issue templates * Update bug-report.md * Reimplement privacy and terms using MDX components * moved mdx types to dev deps --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Co-authored-by: Armin Talaie <[email protected]> * Remove duplicated blank issue template (#250) remove duplicated blank issue template * desktop app setup with Tauri (#252) * Tags API and migrations (#237) * migrations for roles and tags * migration works just update head * minor db model changes for semantics and due to errors * roles init commit * implemented several more apis * updated migrations to remove roles, commented out roles db and created new migration for only tags * init first get tag for roles * imports * comment out role code * commit to fix migration head * added post_tag and doc_tags tables * place migrations on top of new head * updated foreign key for post ID from INT to UUID (to match the changed type from merge) * added back queryhistory model * brought back get_all_tags from merge * comment out more courserole stuff * create tag endpoint * added general crud for tags * renamed tags specific to courses, course tags * added post_tags * fixed all errors with migration * minor refactor for post tags * added document tagging * lots of cleanup on db side * attempt: fixed dup fkey genereation * ignoring pylance issues for old migration issues * formatting * vs code exclude ruff cache * updated to grab authenticated user for created_by field * removed commented out roles * updated migrations, removed more role stuff * clean up + include pydantic schema * removed role imports * remove optional for course_id * updated migration head after pulling cleanup * kept enum model and fixed small insert error with post tag + doc tag * merge migrations from dev * merge heads for db * formatting * fixed type issues --------- Co-authored-by: harshamin <[email protected]> Co-authored-by: Armin Talaie <[email protected]> Co-authored-by: Arman Moztarzadeh <[email protected]> * Update issue templates (#247) * Update issue templates * Update feature_request.md * Update feature_request.md * Setting Theme Refresh (#258) * added revalidate route for cache, used when theme gets updated ya feel * real time setting updating, so real, fr fr * yarn format and lint * Landing Page Initialization [V1] (#259) * init landing page * fix styling for mobile * switch to light theme * Include type field for issue templates (#261) * Add type field to issue templates * Update feature issue tempalte * small change * Include related issues for feature * re-order items in header * fix * fix button styling * Updated Settings Page (#276) * better routing * formatting * migrated settings mgmt state to zustand + enhanced settings page * replaced coursecontext with coursestore * theme tuning * User management (#275) * user management * new files * updated migrations --------- Co-authored-by: Arman Moztarzadeh <[email protected]> * Execute jobs (#278) * feat: implement job scheduler and execution system with runnable * deleted test file * cleaned up code from PR, added a sample job for dev guidelining * Fix lint issues and use prettier --------- Co-authored-by: Arman Moztarzadeh <[email protected]> Co-authored-by: Armin Talaie <[email protected]> Co-authored-by: Caeleb Koharjo <[email protected]> Co-authored-by: harshamin <[email protected]> Co-authored-by: Diego Ayoubzadeh <[email protected]> Co-authored-by: Shreyas Goyal <[email protected]> Co-authored-by: Shreyas Goyal <[email protected]> Co-authored-by: malcolmm20 <[email protected]> Co-authored-by: Kangbin (Jay) Park <[email protected]>
Proposed Changes
resolves #231 , #220
modifies #219