-
Notifications
You must be signed in to change notification settings - Fork 1
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
acoustic.py resync
should set retries
column to 0
#806
Labels
bug
Something isn't working
Comments
Possibly related, but I just noticed that we don't have a unique index for So not only does email = Email(...)
pending_record = PendingAcousticRecord(email_id=email.email_id, retry=5)
dbsession.add(email)
dbsession.add(pending_record)
dbsession.commit()
bulk_schedule_acoustic_records(dbsession, [email.primary_email])
dbsession.commit()
print(len(dbsession.query(PendingAcousticRecord).all()))
2 |
leplatrem
added a commit
that referenced
this issue
Sep 15, 2023
leplatrem
added a commit
that referenced
this issue
Sep 15, 2023
leplatrem
added a commit
that referenced
this issue
Sep 22, 2023
…command (#822) * Ref #806: prevent duplicate entries in pending records table * Fix #806: reset retry and last_retry on resync command * Flush db before scheduling pending record * @grahamalama feedback
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If a contact has
retries=5
, it won't be synchronized.If this contact is among the specified list for
acoustic.py resync
then it won't be resynced.ctms-api/ctms/crud.py
Line 334 in bd8b23d
We should upsert the
PendingAcousticRecord
withretries=0
The text was updated successfully, but these errors were encountered: