File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ declare_attrs! {
3737 /// If true, when a pytokio PythonTask fails, the traceback of the original callsite
3838 /// will be logged.
3939 @meta( CONFIG = ConfigAttr {
40- env_name: Some ( "MONARCH_HYPERACTOR_UNAWAITED_PYTOKIO_TRACEBACK " . to_string( ) ) ,
41- py_name: Some ( "unawaited_pytokio_traceback " . to_string( ) ) ,
40+ env_name: Some ( "MONARCH_HYPERACTOR_ENABLE_UNAWAITED_PYTHON_TASK_TRACEBACK " . to_string( ) ) ,
41+ py_name: Some ( "enable_unawaited_python_task_traceback " . to_string( ) ) ,
4242 } )
43- pub attr UNAWAITED_PYTOKIO_TRACEBACK : u8 = 0 ;
43+ pub attr ENABLE_UNAWAITED_PYTHON_TASK_TRACEBACK : u8 = 0 ;
4444}
4545
4646fn current_traceback ( ) -> PyResult < Option < PyObject > > {
47- if config:: global:: get ( UNAWAITED_PYTOKIO_TRACEBACK ) != 0 {
47+ if config:: global:: get ( ENABLE_UNAWAITED_PYTHON_TASK_TRACEBACK ) != 0 {
4848 Python :: with_gil ( |py| {
4949 Ok ( Some (
5050 py. import ( "traceback" ) ?
@@ -242,7 +242,7 @@ fn send_result(
242242 let tb = if let Some ( tb) = traceback {
243243 format_traceback ( py, & tb) . unwrap ( )
244244 } else {
245- "None (run with `MONARCH_HYPERACTOR_UNAWAITED_PYTOKIO_TRACEBACK =1` to see a traceback here)\n " . into ( )
245+ "None (run with `MONARCH_HYPERACTOR_ENABLE_UNAWAITED_PYTHON_TASK_TRACEBACK =1` to see a traceback here)\n " . into ( )
246246 } ;
247247 tracing:: error!(
248248 "PythonTask errored but is not being awaited; this will not crash your program, but indicates that \
You can’t perform that action at this time.
0 commit comments