Skip to content

Commit 97993b5

Browse files
committed
comment updates
1 parent 427d59f commit 97993b5

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

imap_processing/cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@
9797

9898
logger = logging.getLogger(__name__)
9999

100-
RETRY_EXIT_CODE = (
101-
75 # Exit code that indicates the job should be retried. E.g. if there was an
102-
)
103-
# imap-data-access 503 SlowDown error.
100+
RETRY_EXIT_CODE = 75 # Exit code indicating the job should be retried
101+
# (e.g., imap-data-access 503 SlowDown).
104102

105103

106104
def _parse_args() -> argparse.Namespace:

imap_processing/tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def test_post_processing_upload_503_error(
10491049
)
10501050
instrument = Swe("l1a", "raw", dependency_str, "20100105", None, "v001", True)
10511051

1052-
# Checks that the upload failed and logs an error and raises an exception
1052+
# Checks that the upload failed, logs an error, and exits with the retry exit code
10531053
with mock.patch("logging.Logger.error") as mock_error:
10541054
with pytest.raises(SystemExit) as exc_info:
10551055
instrument.process()

0 commit comments

Comments
 (0)