aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/util.py
Commit message (Collapse)AuthorAgeFilesLines
* util: Use a different algorithm for asyncio_complete()Jason Gunthorpe2020-09-251-6/+5
| | | | | | | | The old version only worked on python > 3.7, this should work universally. Allow all the work in the gather list to finish naturally and just propogate any exceptions that might have been generated. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
* OAUTH: Make some sense of the scopesJason Gunthorpe2020-06-221-1/+1
| | | | | | | | With the ability to run as a broker for IMAP/SMTP we can limit the scopes requested based on the configuration. Add a fake _CMS_ protocol that refers to the scopes required to operate internally. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Don't leave asyncio tasks running unexpectedlyJason Gunthorpe2020-02-071-0/+13
| | | | | | | | All cases where gather is called intend that the tasks will complete successfully or all cancel at the first error. Add a little wrapper to achieve this. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
* Initial commit of cloud_mdir_syncJason Gunthorpe2020-01-101-0/+70
I have been using for a few months now with no ill effects. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>