Skip to content

Commit de226de

Browse files
committed
black reformat
1 parent 6b2e0b5 commit de226de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

geonode/harvesting/tasks.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ def harvesting_session_monitor(
160160
if now_ > expected_finish:
161161
logger.warning(f"Session {harvesting_session_id} appears stuck. Running finalizer.")
162162
# Call your finalizer directly
163-
_finish_harvesting.s(harvesting_session_id, execution_id, force_failure=True) \
164-
.on_error(_handle_harvesting_error.s(harvesting_session_id=harvesting_session_id)) \
165-
.apply_async()
163+
_finish_harvesting.s(harvesting_session_id, execution_id, force_failure=True).on_error(
164+
_handle_harvesting_error.s(harvesting_session_id=harvesting_session_id)
165+
).apply_async()
166166
else:
167167
logger.debug(
168168
f"Session {harvesting_session_id} still ongoing. Rescheduling Harvesting session monitor in {delay}s."
@@ -469,7 +469,7 @@ def _finish_harvesting(self, harvesting_session_id: int, execution_id: str, forc
469469

470470
if force_failure:
471471
final_status = session.STATUS_FINISHED_SOME_FAILED
472-
message = "Finalized with forced failure."
472+
message = "Finalized with forced failure."
473473
elif session.status == session.STATUS_ABORTING:
474474
message = "Harvesting session aborted by user"
475475
final_status = session.STATUS_ABORTED

0 commit comments

Comments
 (0)