Deceivious
03/31/2023, 11:19 AMtask concurrency tag by tag name if the tag doesnt exist , wrong exception is being raised .
Exception being raised : prefect.exceptions.PrefectHTTPStatusError
Exception that should have been raised :  prefect.exceptions.ObjectNotFoundDeceivious
03/31/2023, 11:20 AMfrom prefect.client.orchestration import get_client
async def create_or_update_task_concurrency_tags(tag_name: str, concurrency_limit: int):
    async with get_client() as client:
        try:
            response = await client.read_concurrency_limit_by_tag(tag_name)
        except Exception as err:
            print(type(err))
if __name__ == "__main__":
    import asyncio
    asyncio.run(create_or_update_task_concurrency_tags("TAG_DOESNT_EXIST", None))Zanie
Deceivious
03/31/2023, 2:06 PMZanie
Zanie
Deceivious
03/31/2023, 2:13 PMDeceivious
04/03/2023, 12:32 PM