8go / 8go/matrix-commander

Feature Request: make it work well when several instances are run concurrently

Aperta
#31 17 commenti 1 reazione 0 assegnatari Vedi su GitHub
wontfix
Lingua principale
Python
Stelle
754
Fork
69
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

```bash
for i in $(seq 1 10); do matrix-commander --message $i & ; done
```

Running the above yields:

- One successful message to the channel
- Two `peewee.OperationalError: database is locked` errors
- Six corrupt messages in the channel `Unable to decrypt: The secure channel with the sender was corrupted`
- One `ERROR: matrix-commander: Message send failed. Sorry.` with no traceback

It would be excellent if multiple instances of this program could run concurrently, or at the very least wait politely for a while for any siblings to finish.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Look at the database handling code, likely using peewee, to understand how concurrent access is managed. Check for file locks or database locks in the codebase. The goal is to implement a locking mechanism or queue so multiple instances can run without corrupting messages or causing database errors.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.