Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overiť, čo sa udeje keď súčasne dvaja používatelia kliknú odoslať pri správe #457

Closed
luciajanikova opened this issue Jul 22, 2024 · 3 comments

Comments

@luciajanikova
Copy link
Member

Treba overiť ako sa bude správať súbeh kliknutia odoslať draftu, či nenastane odoslanie dvakrát.

@crutch
Copy link
Contributor

crutch commented Nov 16, 2024

Vysledok experimentu:

  1. sprava sa pokusila odoslat dvakrat
  2. prvy pokus presiel, druhy nie
  3. fail druheho vsak prepisal uspech prveho, na oboch pocitacoch sa to javilo ako neuspesne odoslane
  4. po nejakom case sa automaticky sprava stiahla a dozvedeli sme sa o uspesnom odoslani

@trnal
Copy link
Collaborator

trnal commented Nov 16, 2024

Main issue: dvakrat sa mi to pokusi poslat (prepise sa mi result)

Navrh na riesenie:

  1. pridat unique key na job (aby mohol bezat pre message id:1 len jeden)
  2. schedulovat job s message_id namiesto objektu, tym padom si ho vzdy na zaciatku jobu musime vytiahnut fresh z db a mozeme overit, ci uz nahodou nie je submitted -> toto mozno netreba, ak to uz tak na pozadi funguje?

EDIT:
2. zhodli sme sa, ze netreba, kedze vieme pekne limitnut total jobu - aj enqueued aj running moze byt len jeden

@luciajanikova
Copy link
Member Author

Vyriesene v #508.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants