Skip to content

feature(passport service): preprocessing caching - #78

Merged
ClemDoum merged 3 commits into
mainfrom
feature(passport-service)/preprocessing-caching
Sep 2, 2026
Merged

ClemDoum merged 3 commits into
mainfrom
feature(passport-service)/preprocessing-caching

Conversation

@ClemDoum

@ClemDoum ClemDoum commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Implement global preprocessing cache inside the passport worker to be ISO with the passport service.
The caching strategy is global and not very fine grained.

All preprocessing results are shared as long as the config matches and ignoring potential code updates.

For reprocessing, we can just disable caching in arguments and this will update the cache with using the latest code even if config is unchanged.

This is has a lot of shortcomings but this was how the passport service worked and it felt very useful implemented this way.
More advance/careful strategy will be implemented if problem pop up or usage evolves.

Changes

datashare-python

Added

  • make BaseModel.__hash__ determinitics rather than runtimespecifig
  • added support to use a global activity workdir defined by a given caching_key in the activity_workdir. This allows workers to cache intermediate results which are shared globally rather than storing them in an activity specific location

passport-worker

  • updated activities to store intermediate results in the cache global cache
  • added the ability to use or disable global caching in ASRArgs

@ClemDoum ClemDoum changed the title Feature(passport service)/preprocessing caching feature(passport service): preprocessing caching Sep 1, 2026
@ClemDoum ClemDoum self-assigned this Sep 1, 2026
@ClemDoum
ClemDoum force-pushed the feature(passport-service)/preprocessing-caching branch from 0fddb39 to 1c37696 Compare September 2, 2026 11:06
@ClemDoum
ClemDoum force-pushed the feature(passport-service)/preprocessing-caching branch from 1c37696 to 5dc8e15 Compare September 2, 2026 11:18
@ClemDoum
ClemDoum marked this pull request as ready for review September 2, 2026 11:18
@ClemDoum
ClemDoum merged commit ddba72b into main Sep 2, 2026
12 checks passed
@ClemDoum
ClemDoum deleted the feature(passport-service)/preprocessing-caching branch September 2, 2026 11:33
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