Skip to content

Commit 77f1e63

Browse files
committed
[monarch][ez] MONARCH_HYPERACTOR_UNAWAITED_PYTOKIO_TRACEBACK --> MONARCH_HYPERACTOR_ENABLE_UNAWAITED_PYTHON_TASK_TRACEBACK
Rename the environment variable Differential Revision: [D85899714](https://our.internmc.facebook.com/intern/diff/D85899714/) **NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D85899714/)! ghstack-source-id: 319913486 Pull Request resolved: #1718
1 parent 8fc2c9b commit 77f1e63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

monarch_hyperactor/src/pytokio.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

4646
fn 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 \

0 commit comments

Comments
 (0)