()
| 56 | set_request_context(main_context) |
| 57 | |
| 58 | def pool_task(): |
| 59 | context = get_current_context() |
| 60 | return { |
| 61 | "trace_id": context.trace_id if context else None, |
| 62 | "test_data": context.test_data if context else None, |
| 63 | } |
| 64 | |
| 65 | # Use thread pool to execute task |
| 66 | with ContextThreadPoolExecutor(max_workers=2) as executor: |
nothing calls this directly
no test coverage detected