Tests / apps/api/tests.py
IngestStartEndpointTest::test_ingest_start_progress_end
First seen 2 years, 10 months ago in 9ff0a7e
CI
github-actions:test
15 runs
Average
269 ms
median 296 ms
max 368 ms
max 368 ms
Phases
Setup 0.84 ms
Call 268 ms
Teardown 0.24 ms
Categories
Database 141 ms
App code 0.97 ms
Factories 0.18 ms
Test code 0.09 ms
Other (DB schema, Libraries, Imports, pytest, ...) 127 ms
133 database queries per run
Needs 103 KB of memory (max 464 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 11 hours ago ·
open run
call210 ms99.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()65 ms30.7%
TransactionTestCase._fixture_teardowndjango/test/testcases.py:127565 ms30.7%
call_commanddjango/core/management/__init__.py:19563 ms30.1%
BaseCommand.executedjango/core/management/base.py:46063 ms30.1%
Command.handledjango/core/management/commands/flush.py:9232 ms15.0%
emit_post_migrate_signaldjango/core/management/sql.py:5232 ms15.0%
Signal.senddjango/dispatch/dispatcher.py:20932 ms15.0%
create_permissionsdjango/contrib/auth/management/__init__.py:6112 ms5.6%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1327 ms3.1%
QuerySet.bulk_createdjango/db/models/query.py:8337 ms3.1%
QuerySet._batched_insertdjango/db/models/query.py:19567 ms3.1%
QuerySet._insertdjango/db/models/query.py:19187 ms3.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19257 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:797 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms3.1%
Cursor.executepsycopg/cursor.py:1137 ms3.1%
Connection.waitpsycopg/connection.py:4957 ms3.1%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1224 ms1.9%
QuerySet.__iter__django/db/models/query.py:3904 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms1.9%
FlatValuesListIterable.__iter__django/db/models/query.py:2774 ms1.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15734 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16621 ms0.6%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1291 ms0.6%
Model.__init__django/db/models/base.py:5361 ms0.6%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1225 ms2.5%
QuerySet.__iter__django/db/models/query.py:3905 ms2.5%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms2.5%
FlatValuesListIterable.__iter__django/db/models/query.py:2775 ms2.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15735 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16245 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:795 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms2.5%
Cursor.executepsycopg/cursor.py:1135 ms2.5%
Connection.waitpsycopg/connection.py:4955 ms2.5%
create_permissionsdjango/contrib/auth/management/__init__.py:875 ms2.5%
QuerySet.__iter__django/db/models/query.py:3905 ms2.5%
QuerySet._fetch_alldjango/db/models/query.py:20005 ms2.5%
ValuesListIterable.__iter__django/db/models/query.py:2385 ms2.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15735 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.9%
Cursor.executepsycopg/cursor.py:1134 ms1.9%
Connection.waitpsycopg/connection.py:4954 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms0.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:871 ms0.6%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:5281 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
create_permissionsdjango/contrib/auth/management/__init__.py:1074 ms1.9%
QuerySet.bulk_createdjango/db/models/query.py:8334 ms1.9%
QuerySet._batched_insertdjango/db/models/query.py:19564 ms1.9%
QuerySet._insertdjango/db/models/query.py:19184 ms1.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19254 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.9%
Cursor.executepsycopg/cursor.py:1134 ms1.9%
Connection.waitpsycopg/connection.py:4954 ms1.9%
create_permissionsdjango/contrib/auth/management/__init__.py:803 ms1.3%
ContentTypeManager.get_for_modelsdjango/contrib/contenttypes/models.py:913 ms1.3%
QuerySet.__iter__django/db/models/query.py:3903 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.3%
ModelIterable.__iter__django/db/models/query.py:953 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
create_permissionsdjango/contrib/auth/management/__init__.py:891 ms0.6%
QuerySet.filterdjango/db/models/query.py:15421 ms0.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.6%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.6%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.6%
Query.build_filterdjango/db/models/sql/query.py:16131 ms0.6%
Query.build_lookupdjango/db/models/sql/query.py:14301 ms0.6%
BaseExpression.get_lookupdjango/db/models/expressions.py:4041 ms0.6%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3281 ms0.6%
create_permissionsdjango/contrib/auth/management/__init__.py:961 ms0.6%
Command.handledjango/core/management/commands/flush.py:7429 ms13.8%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:46822 ms10.7%
CursorWrapper.executedjango/db/backends/utils.py:7922 ms10.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9222 ms10.7%
CursorWrapper._executedjango/db/backends/utils.py:10322 ms10.7%
Cursor.executepsycopg/cursor.py:11322 ms10.7%
Connection.waitpsycopg/connection.py:49522 ms10.7%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:4625 ms2.5%
Atomic.__exit__django/db/transaction.py:2635 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.5%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3275 ms2.5%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3035 ms2.5%
Connection.commitpsycopg/connection.py:3095 ms2.5%
Connection.waitpsycopg/connection.py:4955 ms2.5%
Command.handledjango/core/management/commands/flush.py:523 ms1.3%
sql_flushdjango/core/management/sql.py:113 ms1.3%
BaseDatabaseIntrospection.django_table_namesdjango/db/backends/base/introspection.py:1133 ms1.3%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:603 ms1.3%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:543 ms1.3%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:583 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
call_commanddjango/core/management/__init__.py:1221 ms0.6%
BaseCommand.create_parserdjango/core/management/base.py:3041 ms0.6%
CommandParser.__init__django/core/management/base.py:601 ms0.6%
ArgumentParser.__init__<stdlib>/argparse.py:20471 ms0.6%
gettext<stdlib>/gettext.py:6321 ms0.6%
dgettext<stdlib>/gettext.py:5931 ms0.6%
translation<stdlib>/gettext.py:5361 ms0.6%
find<stdlib>/gettext.py:4991 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:210 self.join_workers()54 ms25.7%
IngestStartEndpointTest.join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)54 ms25.7%
drainpotatoq/testing.py:7350 ms23.8%
executepotatoq/worker/executor.py:28850 ms23.8%
_executepotatoq/worker/executor.py:36846 ms21.9%
Task.__call__potatoq/task.py:19246 ms21.9%
Atomic.__enter__django/db/transaction.py:19815 ms6.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45415 ms6.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30315 ms6.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms6.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27915 ms6.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms6.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25613 ms6.3%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)13 ms6.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms6.3%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33313 ms6.3%
Connection.connectpsycopg/connection.py:10913 ms6.3%
wait_connpsycopg/waiting.py:1458 ms3.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4398 ms3.8%
wait_connpsycopg/waiting.py:1415 ms2.5%
EpollSelector.select<stdlib>/selectors.py:4525 ms2.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms0.6%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms0.6%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms0.6%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
warm_reportsapps/api/tasks.py:26613 ms6.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms3.1%
QuerySet.getdjango/db/models/query.py:6357 ms3.1%
QuerySet.__len__django/db/models/query.py:3727 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20007 ms3.1%
ModelIterable.__iter__django/db/models/query.py:957 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16225 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3205 ms2.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2965 ms2.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3035 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2795 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2565 ms2.5%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)5 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms2.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3335 ms2.5%
Connection.connectpsycopg/connection.py:1095 ms2.5%
wait_connpsycopg/waiting.py:1454 ms1.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.9%
wait_connpsycopg/waiting.py:1411 ms0.6%
EpollSelector.select<stdlib>/selectors.py:4521 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
flaky_reportapps/projects/flakiness.py:2534 ms1.9%
compute_flaky_reportapps/projects/flakiness.py:2683 ms1.3%
failing_test_idsapps/projects/flakiness.py:202 ids = set(1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
failing_test_idsapps/projects/flakiness.py:212 ids |= set(1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
compute_flaky_reportapps/projects/flakiness.py:2721 ms0.6%
observations_forapps/projects/flakiness.py:186 perfs = list(perfs)1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1281 ms0.6%
flaky_reportapps/projects/flakiness.py:2503 ms1.3%
data_versionapps/projects/flakiness.py:228 ingest = Ingest.objects.filter(project=project).aggregate(latest=Max("id"))["latest"]1 ms0.6%
QuerySet.aggregatedjango/db/models/query.py:5941 ms0.6%
Query.get_aggregationdjango/db/models/sql/query.py:6331 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
data_versionapps/projects/flakiness.py:229 profile = Profile.objects.filter(project=project).aggregate(latest=Max("date_processed"))["latest"]1 ms0.6%
QuerySet.aggregatedjango/db/models/query.py:5941 ms0.6%
Query.get_aggregationdjango/db/models/sql/query.py:6331 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:1213 ms1.3%
TestManager.upsertapps/projects/models.py:2291 ms0.6%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
TestManager.upsertapps/projects/models.py:236 return {test.name: test for test in self.filter(project=project, name__in=names)}1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms0.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:861 ms0.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:751 ms0.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3171 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
Col.as_sqldjango/db/models/expressions.py:13251 ms0.6%
process_ingest_endapps/api/tasks.py:210 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)3 ms1.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms0.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2221 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:111 ingest = Ingest.objects.select_for_update().get(id=ingest_id)1 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:118 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)1 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.6%
process_ingest_progressapps/api/tasks.py:119 commit = session.run.commit1 ms0.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms0.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2221 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:165 TestRun.objects.bulk_create(1 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.bulk_createdjango/db/models/query.py:8331 ms0.6%
QuerySet._batched_insertdjango/db/models/query.py:19561 ms0.6%
QuerySet._insertdjango/db/models/query.py:19181 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:1851 ms0.6%
update_session_countsapps/api/tasks.py:193 counts = TestRun.objects.filter(session=session).aggregate(1 ms0.6%
QuerySet.aggregatedjango/db/models/query.py:5941 ms0.6%
Query.get_aggregationdjango/db/models/sql/query.py:4841 ms0.6%
BaseExpression.replace_expressionsdjango/db/models/expressions.py:4291 ms0.6%
BaseExpression.replace_expressionsdjango/db/models/expressions.py:4221 ms0.6%
Atomic.__exit__django/db/transaction.py:2631 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3271 ms0.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3031 ms0.6%
Connection.commitpsycopg/connection.py:3091 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_endapps/api/tasks.py:2061 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_endapps/api/tasks.py:2161 ms0.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2571 ms0.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2221 ms0.6%
QuerySet.getdjango/db/models/query.py:6251 ms0.6%
QuerySet.filterdjango/db/models/query.py:15421 ms0.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.6%
process_ingest_endapps/api/tasks.py:2221 ms0.6%
QuerySet.existsdjango/db/models/query.py:13371 ms0.6%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms0.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7671 ms0.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:861 ms0.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:751 ms0.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3171 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
Value.as_sqldjango/db/models/expressions.py:11751 ms0.6%
process_ingest_endapps/api/tasks.py:2291 ms0.6%
Model.savedjango/db/models/base.py:8281 ms0.6%
Model._prepare_related_fields_for_savedjango/db/models/base.py:12471 ms0.6%
_executepotatoq/worker/executor.py:3563 ms1.3%
Signal.sendpotatoq/signals.py:1193 ms1.3%
_close_old_connectionspotatoq/contrib/django/__init__.py:2723 ms1.3%
close_old_connectionsdjango/db/__init__.py:593 ms1.3%
BaseDatabaseWrapper.close_if_unusable_or_obsoletedjango/db/backends/base/base.py:6153 ms1.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms1.3%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms1.3%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:3963 ms1.3%
Connection.closepsycopg/connection.py:2013 ms1.3%
_executepotatoq/worker/executor.py:4101 ms0.6%
Signal.sendpotatoq/signals.py:1191 ms0.6%
_close_old_connectionspotatoq/contrib/django/__init__.py:2721 ms0.6%
close_old_connectionsdjango/db/__init__.py:591 ms0.6%
BaseDatabaseWrapper.close_if_unusable_or_obsoletedjango/db/backends/base/base.py:6151 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.6%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3551 ms0.6%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:3961 ms0.6%
Connection.closepsycopg/connection.py:2011 ms0.6%
drainpotatoq/testing.py:603 ms1.3%
Potatoq.loader_import_default_modulespotatoq/app.py:3533 ms1.3%
Potatoq._import_includespotatoq/app.py:3483 ms1.3%
Potatoq._do_autodiscoverpotatoq/app.py:3823 ms1.3%
import_module<stdlib>/importlib/__init__.py:883 ms1.3%
_gcd_import<frozen importlib._bootstrap>:13893 ms1.3%
_find_and_load<frozen importlib._bootstrap>:13533 ms1.3%
_find_and_load_unlocked<frozen importlib._bootstrap>:12383 ms1.3%
_find_spec<frozen importlib._bootstrap>:11643 ms1.3%
fnmatch<stdlib>/fnmatch.py:373 ms1.3%
drainpotatoq/testing.py:741 ms0.6%
settlepotatoq/worker/executor.py:5521 ms0.6%
Potatoq.backendpotatoq/app.py:4401 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:20525 ms11.9%
IngestStartEndpointTest.join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)25 ms11.9%
drainpotatoq/testing.py:7325 ms11.9%
executepotatoq/worker/executor.py:28825 ms11.9%
_executepotatoq/worker/executor.py:36822 ms10.7%
Task.__call__potatoq/task.py:19222 ms10.7%
Atomic.__enter__django/db/transaction.py:1988 ms3.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms3.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms3.8%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)8 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms3.8%
Connection.connectpsycopg/connection.py:1097 ms3.1%
wait_connpsycopg/waiting.py:1414 ms1.9%
EpollSelector.select<stdlib>/selectors.py:4524 ms1.9%
wait_connpsycopg/waiting.py:1453 ms1.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms1.3%
Connection.connectpsycopg/connection.py:1071 ms0.6%
make_conninfopsycopg/conninfo.py:621 ms0.6%
_parse_conninfopsycopg/conninfo.py:1011 ms0.6%
process_ingest_progressapps/api/tasks.py:1215 ms2.5%
TestManager.upsertapps/projects/models.py:2293 ms1.3%
TestManager.slugs_forapps/projects/models.py:242 taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))3 ms1.3%
QuerySet.__iter__django/db/models/query.py:3903 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.3%
FlatValuesListIterable.__iter__django/db/models/query.py:2773 ms1.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15733 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
TestManager.upsertapps/projects/models.py:230 self.bulk_create( # sorted, so uploads sharing tests lock their rows in the same order3 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.3%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms1.3%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms1.3%
QuerySet._insertdjango/db/models/query.py:19183 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.6%
process_ingest_progressapps/api/tasks.py:119 commit = session.run.commit3 ms1.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2573 ms1.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2223 ms1.3%
QuerySet.getdjango/db/models/query.py:6353 ms1.3%
QuerySet.__len__django/db/models/query.py:3723 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms1.3%
ModelIterable.__iter__django/db/models/query.py:953 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
process_ingest_progressapps/api/tasks.py:165 TestRun.objects.bulk_create(3 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.3%
QuerySet.bulk_createdjango/db/models/query.py:8333 ms1.3%
QuerySet._batched_insertdjango/db/models/query.py:19563 ms1.3%
QuerySet._insertdjango/db/models/query.py:19183 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.6%
process_ingest_progressapps/api/tasks.py:111 ingest = Ingest.objects.select_for_update().get(id=ingest_id)1 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_progressapps/api/tasks.py:118 session = Session.objects.get(project=ingest.project, ingest_id=parent_ingest_id)1 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16111 ms0.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7951 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms0.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5781 ms0.6%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1281 ms0.6%
Exact.as_sqldjango/db/models/lookups.py:4071 ms0.6%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2381 ms0.6%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2301 ms0.6%
Lookup.process_lhsdjango/db/models/lookups.py:1101 ms0.6%
process_ingest_progressapps/api/tasks.py:1891 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11101 ms0.6%
Model._do_updatedjango/db/models/base.py:12111 ms0.6%
QuerySet._updatedjango/db/models/query.py:13271 ms0.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.6%
_executepotatoq/worker/executor.py:3853 ms1.3%
_on_successpotatoq/worker/executor.py:4351 ms0.6%
Signal.sendpotatoq/signals.py:1191 ms0.6%
_close_old_connectionspotatoq/contrib/django/__init__.py:2721 ms0.6%
close_old_connectionsdjango/db/__init__.py:591 ms0.6%
BaseDatabaseWrapper.close_if_unusable_or_obsoletedjango/db/backends/base/base.py:6151 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.6%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3551 ms0.6%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:3961 ms0.6%
Connection.closepsycopg/connection.py:2011 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:19122 ms10.7%
IngestStartEndpointTest.ingest_startapps/api/tests.py:98 return self.client.post(22 ms10.7%
Client.postdjango/test/client.py:115322 ms10.7%
RequestFactory.postdjango/test/client.py:49922 ms10.7%
RequestFactory.genericdjango/test/client.py:67122 ms10.7%
Client.requestdjango/test/client.py:108222 ms10.7%
ClientHandler.__call__django/test/client.py:17313 ms6.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6213 ms6.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms6.3%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms6.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12012 ms5.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms5.6%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms4.4%
StaticFile.__init__whitenoise/responders.py:775 ms2.5%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:1981 ms0.6%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1981 ms0.6%
<GC>~1 ms0.6%
StaticFile.get_alternativeswhitenoise/responders.py:2041 ms0.6%
StaticFile.__init__whitenoise/responders.py:733 ms1.3%
StaticFile.get_headerswhitenoise/responders.py:1781 ms0.6%
StaticFile.get_headerswhitenoise/responders.py:1761 ms0.6%
StaticFile.__init__whitenoise/responders.py:721 ms0.6%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms1.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms1.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms0.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1971 ms0.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms0.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2621 ms0.6%
scantreewhitenoise/base.py:2641 ms0.6%
ClientHandler.__call__django/test/client.py:1869 ms4.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1419 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1309 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3099 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:349 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:559 ms4.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1989 ms4.4%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:659 ms4.4%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:379 ms4.4%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:649 ms4.4%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)5 ms2.5%
ingest_startapps/api/urls.py:100 process_ingest_start(ingest.id)3 ms1.3%
_SharedTaskProxy.__call__potatoq/app.py:7633 ms1.3%
Task.__call__potatoq/task.py:1893 ms1.3%
process_ingest_startapps/api/tasks.py:771 ms0.6%
get_or_create_numberedapps/projects/models.py:18 existing = model.objects.filter(project=project, **lookup).first()1 ms0.6%
QuerySet.firstdjango/db/models/query.py:11451 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
process_ingest_startapps/api/tasks.py:105 ingest.save(update_fields=["date_processed"])1 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11101 ms0.6%
Model._do_updatedjango/db/models/base.py:12111 ms0.6%
QuerySet._updatedjango/db/models/query.py:13271 ms0.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
ingest_startapps/api/urls.py:90 ingest = Ingest.objects.create(project=project, source="ingest_start", data=json.loads(request.body))1 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.createdjango/db/models/query.py:6691 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11671 ms0.6%
Model._do_insertdjango/db/models/base.py:12181 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet._insertdjango/db/models/query.py:19181 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
ingest_startapps/api/urls.py:95 "muted_tests": [{"name": test.name} for test in muted_tests],1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.3%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)3 ms1.3%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms0.6%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms0.6%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms0.6%
QuerySet.updatedjango/db/models/query.py:13001 ms0.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))1 ms0.6%
get_object_or_404django/shortcuts.py:901 ms0.6%
QuerySet.getdjango/db/models/query.py:6351 ms0.6%
QuerySet.__len__django/db/models/query.py:3721 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
ModelIterable.__iter__django/db/models/query.py:951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:20717 ms8.1%
IngestStartEndpointTest.ingest_endapps/api/tests.py:11417 ms8.1%
Client.postdjango/test/client.py:115317 ms8.1%
RequestFactory.postdjango/test/client.py:49917 ms8.1%
RequestFactory.genericdjango/test/client.py:67117 ms8.1%
Client.requestdjango/test/client.py:108217 ms8.1%
ClientHandler.__call__django/test/client.py:18617 ms8.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14117 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13017 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12317 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3417 ms8.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms8.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19817 ms8.1%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:6517 ms8.1%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:3717 ms8.1%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:6417 ms8.1%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:72 project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))13 ms6.3%
get_object_or_404django/shortcuts.py:9013 ms6.3%
QuerySet.getdjango/db/models/query.py:63513 ms6.3%
QuerySet.__len__django/db/models/query.py:37213 ms6.3%
QuerySet._fetch_alldjango/db/models/query.py:200013 ms6.3%
ModelIterable.__iter__django/db/models/query.py:9513 ms6.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162211 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms5.0%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32011 ms5.0%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29611 ms5.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30311 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms5.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms5.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms4.4%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms4.4%
Connection.connectpsycopg/connection.py:1098 ms3.8%
wait_connpsycopg/waiting.py:1455 ms2.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms2.5%
wait_connpsycopg/waiting.py:1413 ms1.3%
EpollSelector.select<stdlib>/selectors.py:4523 ms1.3%
Connection.connectpsycopg/connection.py:1001 ms0.6%
conninfo_attemptspsycopg/_conninfo_attempts.py:451 ms0.6%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1021 ms0.6%
getaddrinfo<stdlib>/socket.py:9981 ms0.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms0.6%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms0.6%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms0.6%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.3%
Cursor.executepsycopg/cursor.py:1133 ms1.3%
Connection.waitpsycopg/connection.py:4953 ms1.3%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:73 touch_token(request.headers.get("Authorization"))3 ms1.3%
touch_tokenapps/api/urls.py:59 SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)1 ms0.6%
QuerySet.__iter__django/db/models/query.py:3901 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.6%
FlatValuesListIterable.__iter__django/db/models/query.py:2771 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms0.6%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms0.6%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms0.6%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms0.6%
Atomic.__exit__django/db/transaction.py:2631 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3271 ms0.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3031 ms0.6%
Connection.commitpsycopg/connection.py:3091 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
BaseConnection._commit_genpsycopg/_connection_base.py:5921 ms0.6%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms0.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)1 ms0.6%
ingest_endapps/api/urls.py:1201 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.createdjango/db/models/query.py:6691 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11671 ms0.6%
Model._do_insertdjango/db/models/base.py:12181 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet._insertdjango/db/models/query.py:19181 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
IngestStartEndpointTest.setUpapps/api/tests.py:73 self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)15 ms6.9%
makemodel_bakery/baker.py:14715 ms6.9%
Baker.makemodel_bakery/baker.py:40615 ms6.9%
Baker._makemodel_bakery/baker.py:471 self.model_attrs[field.name] = self.generate_value(11 ms5.0%
Baker.generate_valuemodel_bakery/baker.py:80011 ms5.0%
gen_relatedmodel_bakery/random_gen.py:27411 ms5.0%
makemodel_bakery/baker.py:14711 ms5.0%
Baker.makemodel_bakery/baker.py:40611 ms5.0%
Baker._makemodel_bakery/baker.py:48211 ms5.0%
Baker.instancemodel_bakery/baker.py:53511 ms5.0%
Model.savedjango/db/models/base.py:87411 ms5.0%
Model.save_basedjango/db/models/base.py:96611 ms5.0%
Model._save_tabledjango/db/models/base.py:116711 ms5.0%
Model._do_insertdjango/db/models/base.py:121811 ms5.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8711 ms5.0%
QuerySet._insertdjango/db/models/query.py:191811 ms5.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19239 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.4%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3209 ms4.4%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2969 ms4.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms4.4%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms4.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms4.4%
Connection.connectpsycopg/connection.py:1097 ms3.1%
wait_connpsycopg/waiting.py:1455 ms2.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms2.5%
wait_connpsycopg/waiting.py:1411 ms0.6%
EpollSelector.select<stdlib>/selectors.py:4521 ms0.6%
Connection.connectpsycopg/connection.py:1003 ms1.3%
conninfo_attemptspsycopg/_conninfo_attempts.py:453 ms1.3%
_resolve_hostnamespsycopg/_conninfo_attempts.py:1023 ms1.3%
getaddrinfo<stdlib>/socket.py:9983 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
Baker._makemodel_bakery/baker.py:4823 ms1.3%
Baker.instancemodel_bakery/baker.py:5353 ms1.3%
Model.savedjango/db/models/base.py:8743 ms1.3%
Model.save_basedjango/db/models/base.py:9663 ms1.3%
Model._save_tabledjango/db/models/base.py:11673 ms1.3%
Model._do_insertdjango/db/models/base.py:12183 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.3%
QuerySet._insertdjango/db/models/query.py:19183 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19243 ms1.3%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18691 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
Baker._makemodel_bakery/baker.py:4901 ms0.6%
Baker.create_by_related_namemodel_bakery/baker.py:5601 ms0.6%
makemodel_bakery/baker.py:1471 ms0.6%
Baker.makemodel_bakery/baker.py:4061 ms0.6%
Baker._makemodel_bakery/baker.py:4821 ms0.6%
Baker.instancemodel_bakery/baker.py:5351 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11671 ms0.6%
Model._do_insertdjango/db/models/base.py:12181 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet._insertdjango/db/models/query.py:19181 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:2128 ms3.8%
QuerySet.getdjango/db/models/query.py:6358 ms3.8%
QuerySet.__len__django/db/models/query.py:3728 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20008 ms3.8%
ModelIterable.__iter__django/db/models/query.py:958 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16228 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3208 ms3.8%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2968 ms3.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms3.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms3.1%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms3.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms3.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms3.1%
Connection.connectpsycopg/connection.py:1095 ms2.5%
wait_connpsycopg/waiting.py:1454 ms1.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms1.9%
wait_connpsycopg/waiting.py:1411 ms0.6%
EpollSelector.select<stdlib>/selectors.py:4521 ms0.6%
Connection.connectpsycopg/connection.py:971 ms0.6%
Connection._get_connection_paramspsycopg/connection.py:1851 ms0.6%
conninfo_to_dictpsycopg/conninfo.py:821 ms0.6%
_parse_conninfopsycopg/conninfo.py:1011 ms0.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms0.6%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms0.6%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms0.6%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms0.6%
Cursor.executepsycopg/cursor.py:1131 ms0.6%
Connection.waitpsycopg/connection.py:4951 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:1973 ms1.3%
IngestStartEndpointTest.ingest_progressapps/api/tests.py:1063 ms1.3%
Client.postdjango/test/client.py:11533 ms1.3%
RequestFactory.postdjango/test/client.py:4993 ms1.3%
RequestFactory.genericdjango/test/client.py:6713 ms1.3%
Client.requestdjango/test/client.py:10821 ms0.6%
ClientHandler.__call__django/test/client.py:1861 ms0.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1411 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1301 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1231 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:341 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1981 ms0.6%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:651 ms0.6%
jsonify_errors.<locals>.wrapped_viewapps/api/urls.py:371 ms0.6%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:641 ms0.6%
api_request.<locals>.decorator.<locals>.wrapped_viewapps/api/urls.py:75 return view_func(request, *args, **kwargs)1 ms0.6%
ingest_progressapps/api/urls.py:1111 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.6%
QuerySet.createdjango/db/models/query.py:6691 ms0.6%
Model.savedjango/db/models/base.py:8741 ms0.6%
Model.save_basedjango/db/models/base.py:9661 ms0.6%
Model._save_tabledjango/db/models/base.py:11471 ms0.6%
Client.requestdjango/test/client.py:10971 ms0.6%
IngestStartEndpointTest.test_ingest_start_progress_endapps/api/tests.py:1951 ms0.6%
IngestStartEndpointTest.join_workersapps/api/tests.py:76 drain(current_app(), raise_on_failure=True)1 ms0.6%
Estimated from 159 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
52 ms |
|
apps/api/tests.py:76
drain(current_app(), raise_on_failure=True)
IngestStartEndpointTest.join_workers
· Database
|
15 ms |
|
apps/api/tests.py:98
return self.client.post(
IngestStartEndpointTest.ingest_start
· Libraries
|
13 ms |
|
apps/api/urls.py:72
project = get_object_or_404(Project, secrettokens__token=request.headers.get("Authorization"))
api_request.<locals>.decorator.<locals>.wrapped_view
· Database
|
5 ms |
|
apps/api/tests.py:73
self.project = baker.make("projects.Project", secrettokens_set__token=self.secret_token)
IngestStartEndpointTest.setUp
· Database
|
5 ms |
|
apps/api/tasks.py:119
commit = session.run.commit
process_ingest_progress
· Database
|
4 ms |
|
apps/api/urls.py:59
SecretTokens.objects.filter(pk__in=list(stale)).update(date_last_used=now)
touch_token
· Database
|
4 ms |
|
apps/api/tasks.py:165
TestRun.objects.bulk_create(
process_ingest_progress
· Database
|
4 ms |
|
apps/projects/models.py:242
taken = set(self.filter(project_id=project_id, slug__in=set(new.values())).values_list("slug", flat=True))
TestManager.slugs_for
· Database
|
3 ms |
|
apps/api/tasks.py:111
ingest = Ingest.objects.select_for_update().get(id=ingest_id)
process_ingest_progress
· Database
|
3 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
133 queries · 77 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
20×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
10×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))
10×
SELECT "auth_permission"."content_type_id" AS "content_type", "auth_permission"."codename" AS "codename" FROM "auth_permission" INNER JOIN "django_content_type" ON ("auth_permission"."content_type_id" = "django_content_type"."id") WHERE "auth_permission"."content_type_id" IN (…) ORDER BY "django_co…
10×
INSERT INTO "auth_permission" ("name", "content_type_id", "codename") SELECT * FROM UNNEST((%s)::varchar(?)[], (%s)::integer[], (%s)::varchar(?)[]) RETURNING "auth_permission"."id"
8×
SELECT "projects_project"."id", "projects_project"."organization_id", "projects_project"."name", "projects_project"."slug", "projects_project"."public", "projects_project"."description", "projects_project"."date_created", "projects_project"."date_updated", "projects_project"."created_by_id" FROM "p…
Biggest pieces of work
|
call test body
apps/api/tests.py:210
|
131 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
65 ms |
|
call setUp
apps/api/tests.py:73
|
15 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 11 hours ago | CI github-actions:test | passed | 211 ms | Profile |
| 3 days, 21 hours ago | CI github-actions:test | passed | 301 ms | Profile |
| 5 days, 21 hours ago | CI github-actions:test | passed | 173 ms | Profile |
| 6 days, 21 hours ago | CI github-actions:test | passed | 273 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 170 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 300 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 239 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 326 ms | Profile |
| 3 weeks, 1 day ago | CI github-actions:test | passed | 202 ms | Profile |
| 3 weeks, 4 days ago | CI github-actions:test | passed | 368 ms | Profile |
| 3 weeks, 5 days ago | CI github-actions:test | passed | 296 ms | Profile |
| 3 weeks, 5 days ago | CI github-actions:test | passed | 323 ms | Profile |
| 3 weeks, 6 days ago | CI github-actions:test | passed | 354 ms | Profile |
| 3 weeks, 6 days ago | CI github-actions:test | passed | 205 ms | Profile |
| 3 weeks, 6 days ago | CI github-actions:test | passed | 297 ms | Profile |