rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-compute/src/work_lease_authority.rs
Items
const EXECUTION_WORK_LEASES_TABLE const EXECUTION_WORK_EFFECT_CLAIMS_TABLE const EXECUTION_WORK_EFFECT_CLAIM_SCHEMA const EXECUTION_WORK_EFFECT_CLAIM_PREFIX enum ExecutionWorkLeaseAuthorityError type ExecutionWorkLeaseAuthorityResult enum ExecutionWorkEffectKind impl ExecutionWorkEffectKind enum ExecutionWorkEffectClaimStatus impl ExecutionWorkEffectClaimStatus struct ExecutionWorkEffectClaim impl ExecutionWorkEffectClaim trait ExecutionWorkLeaseAuthority struct SqliteExecutionWorkLeaseAuthority impl SqliteExecutionWorkLeaseAuthority impl ExecutionWorkLeaseAuthority for SqliteExecutionWorkLeaseAuthority struct PersistedLeaseFields impl PersistedLeaseFields struct PersistedEffectClaimFields impl PersistedEffectClaimFields static NEXT_TEST_DB
Functions
By call-graph weight (PageRank; 1.0 is the average function). 75 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| storage_errorsrc/work_lease_authority.rs:1322 | fn | 3 | 1 | 30 | 0 | 5.9 | |
| canonical_authenticated_ownersrc/work_lease_authority.rs:1361 | fn | 7 | 3 | 9 | 0 | 2.6 | |
| SqliteExecutionWorkLeaseAuthority::ensure_configured_coordinatorsrc/work_lease_authority.rs:741 | method | 12 | 2 | 9 | 0 | 2.4 | |
| hash_claim_partsrc/work_lease_authority.rs:1408 | fn | 4 | 1 | 2 | 0 | 2.1 | |
| SqliteExecutionWorkLeaseAuthority::from_shared_truthsrc/work_lease_authority.rs:517 | method | 12 | 2 | 7 | 0 | 1.8 | |
| SqliteExecutionWorkLeaseAuthority::compare_and_swapsrc/work_lease_authority.rs:685 | method | 55 | 3 | 7 | 4 | 1.5 | |
| ExecutionWorkEffectClaim::derived_claim_idsrc/work_lease_authority.rs:360 | method | 21 | 2 | 3 | 1 | 1.4 | |
| cleanupsrc/work_lease_authority.rs:1673 | fn | 5 | 2 | 12 | 0 | 1.3 | |
| authoritysrc/work_lease_authority.rs:1667 | fn | 5 | 1 | 11 | 3 | 1.2 | |
| work_keysrc/work_lease_authority.rs:1679 | fn | 4 | 1 | 11 | 1 | 1.2 | |
| canonical_effect_keysrc/work_lease_authority.rs:1392 | fn | 7 | 3 | 4 | 0 | 1.2 | |
| ensure_authenticated_ownersrc/work_lease_authority.rs:1369 | fn | 14 | 2 | 6 | 1 | 1.2 | |
| sqlite_i64src/work_lease_authority.rs:1413 | fn | 3 | 1 | 4 | 0 | 1.2 | |
| ExecutionWorkEffectClaim::same_immutable_bindingsrc/work_lease_authority.rs:343 | method | 16 | 14 | 7 | 0 | 1.2 | |
| coordinatorsrc/work_lease_authority.rs:1689 | fn | 3 | 1 | 6 | 1 | 1.1 | |
| stored_textsrc/work_lease_authority.rs:1423 | fn | 4 | 1 | 4 | 2 | 1.1 | |
| canonical_effect_receiptsrc/work_lease_authority.rs:1400 | fn | 7 | 3 | 2 | 0 | 1 | |
| SqliteExecutionWorkLeaseAuthority::opensrc/work_lease_authority.rs:510 | method | 6 | 1 | 4 | 1 | 1 | |
| PersistedLeaseFields::from_leasesrc/work_lease_authority.rs:1189 | method | 20 | 1 | 2 | 3 | 0.9 | |
| cache_keysrc/work_lease_authority.rs:1684 | fn | 4 | 1 | 7 | 1 | 0.9 | |
| SqliteExecutionWorkLeaseAuthority::next_fencing_tokensrc/work_lease_authority.rs:754 | method | 9 | 2 | 3 | 1 | 0.9 | |
| PersistedLeaseFields::insert_paramssrc/work_lease_authority.rs:1210 | method | 19 | 1 | 1 | 0 | 0.9 | |
| lease_status_textsrc/work_lease_authority.rs:1641 | fn | 8 | 4 | 3 | 0 | 0.9 | |
| test_db_pathsrc/work_lease_authority.rs:1659 | fn | 7 | 1 | 2 | 0 | 0.9 | |
| stored_effect_claim_from_rowsrc/work_lease_authority.rs:1577 | fn | 63 | 8 | 3 | 5 | 0.9 | |
| ExecutionWorkEffectClaim::validatesrc/work_lease_authority.rs:263 | method | 61 | 12 | 1 | 3 | 0.8 | |
| ExecutionWorkEffectClaim::committedsrc/work_lease_authority.rs:325 | method | 17 | 2 | 4 | 2 | 0.8 | |
| stored_u64src/work_lease_authority.rs:1417 | fn | 5 | 1 | 2 | 2 | 0.7 | |
| SqliteExecutionWorkLeaseAuthority::lease_column_namessrc/work_lease_authority.rs:648 | method | 8 | 1 | 2 | 3 | 0.7 | |
| ExecutionWorkEffectClaim::from_completed_leasesrc/work_lease_authority.rs:188 | method | 40 | 3 | 4 | 2 | 0.7 | |
| require_canonical_identifiersrc/work_lease_authority.rs:1384 | fn | 7 | 3 | 2 | 0 | 0.7 | |
| stored_effect_opt_textsrc/work_lease_authority.rs:1533 | fn | 15 | 3 | 1 | 2 | 0.6 | |
| stored_effect_opt_u64src/work_lease_authority.rs:1549 | fn | 27 | 3 | 1 | 2 | 0.6 | |
| SqliteExecutionWorkLeaseAuthority::ensure_lease_completion_columnssrc/work_lease_authority.rs:610 | method | 37 | 5 | 1 | 3 | 0.6 | |
| SqliteExecutionWorkLeaseAuthority::insert_if_absentsrc/work_lease_authority.rs:657 | method | 27 | 2 | 1 | 4 | 0.6 | |
| completed_generation_matchessrc/work_lease_authority.rs:1326 | fn | 17 | 15 | 2 | 0 | 0.6 | |
| completed_artifact_bindings_matchsrc/work_lease_authority.rs:1344 | fn | 16 | 5 | 2 | 0 | 0.6 | |
| PersistedEffectClaimFields::from_claimsrc/work_lease_authority.rs:1269 | method | 27 | 1 | 2 | 2 | 0.6 | |
| stored_opt_textsrc/work_lease_authority.rs:1428 | fn | 12 | 3 | 1 | 3 | 0.6 | |
| stored_lease_from_rowsrc/work_lease_authority.rs:1441 | fn | 91 | 14 | 1 | 5 | 0.6 | |
| SqliteExecutionWorkLeaseAuthority::observe_effect_claim_by_idsrc/work_lease_authority.rs:764 | method | 19 | 1 | 1 | 3 | 0.6 | |
| SqliteExecutionWorkLeaseAuthority::observesrc/work_lease_authority.rs:786 | trait impl | 20 | 2 | 1 | 5 | 0.6 | |
| SqliteExecutionWorkLeaseAuthority::observe_effect_claimsrc/work_lease_authority.rs:1064 | trait impl | 21 | 1 | 1 | 4 | 0.5 | |
| ExecutionWorkEffectKind::as_strsrc/work_lease_authority.rs:131 | method | 7 | 3 | 0 | 0 | 0.5 | |
| ExecutionWorkEffectClaimStatus::as_strsrc/work_lease_authority.rs:151 | method | 6 | 2 | 0 | 0 | 0.5 | |
| ExecutionWorkEffectClaim::stable_hashsrc/work_lease_authority.rs:231 | method | 3 | 1 | 0 | 1 | 0.5 | |
| ExecutionWorkEffectClaim::record_hashsrc/work_lease_authority.rs:236 | method | 26 | 2 | 0 | 1 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::truthsrc/work_lease_authority.rs:530 | method | 3 | 1 | 0 | 0 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::coordinatorsrc/work_lease_authority.rs:534 | method | 3 | 1 | 0 | 0 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::ensure_schemasrc/work_lease_authority.rs:538 | method | 71 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::acquiresrc/work_lease_authority.rs:807 | trait impl | 19 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::renewsrc/work_lease_authority.rs:827 | trait impl | 14 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::expiresrc/work_lease_authority.rs:842 | trait impl | 10 | 1 | 0 | 2 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::takeoversrc/work_lease_authority.rs:853 | trait impl | 13 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::releasesrc/work_lease_authority.rs:867 | trait impl | 13 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::reclaim_releasedsrc/work_lease_authority.rs:881 | trait impl | 13 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::restart_completed_for_unmet_admissionsrc/work_lease_authority.rs:895 | trait impl | 18 | 1 | 0 | 3 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::finalizesrc/work_lease_authority.rs:914 | trait impl | 68 | 10 | 0 | 7 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::claim_effectsrc/work_lease_authority.rs:983 | trait impl | 80 | 6 | 0 | 10 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::list_pending_effect_claimssrc/work_lease_authority.rs:1086 | trait impl | 25 | 2 | 0 | 4 | 0.5 | |
| SqliteExecutionWorkLeaseAuthority::mark_effect_committedsrc/work_lease_authority.rs:1112 | trait impl | 56 | 9 | 0 | 6 | 0.5 | |
| PersistedLeaseFields::cas_paramssrc/work_lease_authority.rs:1230 | method | 14 | 1 | 0 | 1 | 0.5 | |
| PersistedEffectClaimFields::insert_paramssrc/work_lease_authority.rs:1297 | method | 23 | 1 | 0 | 0 | 0.5 | |
| concurrent_acquire_has_exactly_one_sqlite_winnersrc/work_lease_authority.rs:1694 | fn | 17 | 2 | 0 | 6 | 0.5 | |
| stale_worker_cannot_renew_finalize_or_release_after_takeoversrc/work_lease_authority.rs:1713 | fn | 32 | 1 | 0 | 6 | 0.5 | |
| finalized_completion_survives_reopen_after_crash_boundarysrc/work_lease_authority.rs:1747 | fn | 23 | 1 | 0 | 8 | 0.5 | |
| released_work_reclaims_immediately_through_authoritysrc/work_lease_authority.rs:1772 | fn | 13 | 1 | 0 | 5 | 0.5 | |
| completed_restart_requires_explicit_authority_path_and_invalidates_old_fencesrc/work_lease_authority.rs:1787 | fn | 34 | 1 | 0 | 7 | 0.5 | |
| configured_coordinator_rejects_foreign_records_before_mutationsrc/work_lease_authority.rs:1823 | fn | 20 | 1 | 0 | 6 | 0.5 | |
| fencing_token_exhaustion_fails_closed_without_replacing_current_leasesrc/work_lease_authority.rs:1845 | fn | 22 | 1 | 0 | 6 | 0.5 | |
| finalize_retry_reconciles_a_lost_success_response_without_accepting_conflictsrc/work_lease_authority.rs:1869 | fn | 44 | 1 | 0 | 6 | 0.5 | |
| current_completed_effect_claim_is_idempotent_and_survives_reopen_pendingsrc/work_lease_authority.rs:1915 | fn | 57 | 1 | 0 | 8 | 0.5 | |
| stale_completion_after_restart_cannot_create_new_effect_and_old_claim_survivessrc/work_lease_authority.rs:1974 | fn | 43 | 1 | 0 | 6 | 0.5 | |
| effect_key_conflict_and_commit_receipt_are_idempotentsrc/work_lease_authority.rs:2019 | fn | 56 | 1 | 0 | 6 | 0.5 | |
| concurrent_legacy_schema_startup_accepts_the_other_authoritys_completed_migrationsrc/work_lease_authority.rs:2077 | fn | 52 | 2 | 0 | 8 | 0.5 |
Source not readable from this process.