Skip to content
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

Feature/resolve celery #101

Merged
merged 13 commits into from
Dec 10, 2024
Merged

Feature/resolve celery #101

merged 13 commits into from
Dec 10, 2024

Conversation

hareshkainthdbt
Copy link
Collaborator

No description provided.

Reorganized application package structure to improve modularity and navigability. Moved files from `fbr` to `app` directory and renamed key modules to better reflect functionality, such as `celery_worker`. Additionally, updated all relevant imports and settings configurations to align with the new structure, including Django settings and task management.
Reorganized application package structure to improve modularity and navigability. Moved files from `fbr` to `app` directory and renamed key modules to better reflect functionality, such as `celery_worker`. Additionally, updated all relevant imports and settings configurations to align with the new structure, including Django settings and task management.
Moved Dockerfile and entry script out of local_deployment for a cleaner structure. Updated docker-compose and Makefile to reflect these changes, using a unified image to leverage caching. Removed Poetry setup in favor of using pip with requirements.txt for dependency management.
Introduce DATABASE_URL environment variable for local PostgreSQL setup in Docker and Makefile. Update `rebuild_cache` task with a specific name and adjust its schedule. Refactor Django settings and Makefile commands for improved database management consistency.
The schedule for the cache rebuild task was incorrectly documented as running at a different time than configured. This change aligns both the actual schedule and the comment to correctly indicate the task runs at 1:00 AM daily.
Introduce a new make target to allow local setup with forced cache rebuild. This ensures that the local environment is set up and caches are manually rebuilt without relying on Celery tasks.
return Response(response, status=status.HTTP_200_OK)
except Exception as e:
return Response(
data={"message": f"error building csv download response: {e}"},

Check warning

Code scanning / CodeQL

Information exposure through an exception Medium

Stack trace information
flows to this location and may be exposed to an external user.
Unified the manage.py path by removing 'fbr/' prefix in scripts and configuration files, ensuring consistency across the project. Adjusted DJANGO_SETTINGS_MODULE in image_build_run.sh for a streamlined setup. These changes improve maintainability and reduce potential errors related to incorrect file paths.
Modify import paths for `create_search_query` and `SearchQuery` in `test_search.py` to reflect the correct module structure under `app/search/utils/search.py`. This ensures that test cases reference the correct location and maintain consistency with the application structure.
Updated the path to `manage.py` in the `collectstatic` command within the code quality GitHub workflow to correct the file path. This ensures the command executes successfully without errors related to incorrect paths.
Correct the syntax for the collectstatic command by explicitly using python with manage.py. This ensures compatibility and prevents potential execution issues in the CI environment.
Add handling for failed URL fetches by logging errors and storing them in a list instead of raising exceptions. This ensures that the process can continue attempting to build the cache while logging a comprehensive list of any failed sources.
Shortening the timeout improves the speed of clearing all documents and building the cache. This adjustment aims to enhance the system's responsiveness and efficiency during cache management operations.
@hareshkainthdbt hareshkainthdbt merged commit 898e753 into main Dec 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant