Repository navigation
Upgrade (projects must change): the AWS and Azure messaging clients are async, and boto3 is gone.
app_state.client_ses,client_snsandclient_s3are aiobotocore clients, andclient_azure_email/client_azure_smsare the Azure.aioclients: a project that calls one addsawait(await app_state.client_ses.send_email(...); Azure email:await (await client.begin_send(message)).result()), neverasyncio.to_thread.client_s3_resourceandfunc_client_s3_resourceare removed;func_blob_container_opsno longer takesclient_s3_resource, and emptying a bucket answersdeleted_count. The packageboto3is removed: a project that imports it adds it under# extend.- A project that uses none of these changes nothing.
What changed:
- OTP and email never wait for a thread: SES, SNS, Azure email and Azure SMS are awaited on async clients, so a burst of logins no longer queues behind the few worker threads. Every service call in Atom is now async except Celery
send_task(no async client), which still runs in a thread. func_client_aws(service=...)opens any async AWS client andfunc_client_aws_closecloses it;script.worker_users_deletedeletes S3 files through it.