(name)
| 46 | |
| 47 | |
| 48 | def register_task(name): |
| 49 | def decorate(fn): |
| 50 | assert ( |
| 51 | name not in TASK_REGISTRY |
| 52 | ), f"task named '{name}' conflicts with existing registered task!" |
| 53 | |
| 54 | TASK_REGISTRY[name] = fn |
| 55 | ALL_TASKS.add(name) |
| 56 | func2task_index[fn.__name__] = name |
| 57 | return fn |
| 58 | |
| 59 | return decorate |
| 60 | |
| 61 | |
| 62 | def register_group(name): |
nothing calls this directly
no outgoing calls
no test coverage detected