2
0
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
Luca 661df8d370 fix(send_message): use result of send to actually do the work
continuous-integration/drone/push Build is passing Details
2024-05-10 19:55:10 +02:00
Luca b2b5dbc091 fix(settings): set long busy timeout for default SQLite database 2024-05-10 19:54:12 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ def send_message(msgid, is_retry=False):
if msg.sent_at: if msg.sent_at:
return return
send(msg.as_outbound()) list(send(msg.as_outbound()))
msg.sent_at = timezone.now() msg.sent_at = timezone.now()
msg.save() msg.save()

View File

@ -117,7 +117,7 @@ WSGI_APPLICATION = "shiftregister.wsgi.application"
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases # https://docs.djangoproject.com/en/4.0/ref/settings/#databases
DATABASES = { DATABASES = {
"default": env.db_url(default=f"sqlite:///{BASE_DIR / 'db.sqlite3'}"), "default": env.db_url(default=f"sqlite:///{BASE_DIR / 'db.sqlite3'}?timeout=10000"),
} }