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

No Jira: Record time for task deletion #977

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

No Jira: Record time for task deletion #977

wants to merge 1 commit into from

Conversation

dchhabda
Copy link

@dchhabda dchhabda commented Oct 2, 2024

pybossa:INFO:[2024-10-02 17:51:44,275] Delete task profiling. delete request for task 5576, project 2 [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:205]
pybossa:INFO:[2024-10-02 17:51:44,278] Delete task profiling. Time for self._delete 0.003495 seconds (task 5576, project 2) [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:211]
pybossa:INFO:[2024-10-02 17:51:44,289] Delete task profiling. Time for self.db.session.commit 0.000372 seconds (task 5576, project 2) [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:217]
pybossa:INFO:[2024-10-02 17:51:44,292] Delete task profiling. Time for cached_projects.clean_project 0.003754 seconds (task 5576, project 2) [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:222]
pybossa:INFO:[2024-10-02 17:51:44,293] Delete task profiling. Time for self._delete_zip_files_from_store 0.000246 seconds (task 5576, project 2) [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:227]
pybossa:INFO:[2024-10-02 17:51:44,293] Delete task profiling. Total deletion time for task 5576, project 2 was 0.018055 seconds [in /home/pybossa/pybossa/pybossa/repositories/task_repository.py:231]

Copy link

@kbecker42 kbecker42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. To make it easier to search the logs for these deletion times, could we prepend to the front of each log line a common keyword, such as: "Deletion Time: "

@dchhabda
Copy link
Author

dchhabda commented Oct 2, 2024

Delete task profiling.

Added Delete task profiling to each log lines. Thanks!

kbecker42
kbecker42 previously approved these changes Oct 2, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11149704311

Details

  • 17 of 17 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 94.018%

Totals Coverage Status
Change from base Build 11148403309: 0.006%
Covered Lines: 17351
Relevant Lines: 18455

💛 - Coveralls

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.

3 participants