Skip to content

Make Importable as Library#14

Open
j4n wants to merge 1 commit intomainfrom
j4n/make-importable
Open

Make Importable as Library#14
j4n wants to merge 1 commit intomainfrom
j4n/make-importable

Conversation

@j4n
Copy link

@j4n j4n commented Mar 10, 2026

Fix several roadblocks preventing usage of cmping as library:

Changes:

  • Add CMPingError exception, replace sys.exit(1) with raise CMPingError()
  • Add collection of result tuples in Pinger.results
  • Return times of account setup, group join and message time from Pinger
  • Add accounts_dir parameter to perform_ping() to allow callers to
    isolate concurrent probes in separate DB directories, avoiding the
    deltachat-rpc-server exclusive lock
  • Add timeout support to Pinger

Fix several roadblocks preventing usage of cmping as library:

Changes:
- Add CMPingError exception, replace sys.exit(1) with raise CMPingError()
- Add collection of result tuples in Pinger.results
- Return times of account setup, group join and message time from Pinger
- Add accounts_dir parameter to perform_ping() to allow callers to
  isolate concurrent probes in separate DB directories, avoiding the
  deltachat-rpc-server exclusive lock
- Add timeout support to Pinger
@j4n j4n requested a review from hpk42 March 10, 2026 16:41
@j4n j4n changed the title Add deadline support to Pinger Make Importable as Library Mar 10, 2026
@j4n
Copy link
Author

j4n commented Mar 10, 2026

Title got mixed up. This is for the chatmail prober, which is almost ready.

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