Skip to content

Commit 7509d41

Browse files
committed
Make _is_rebooting class-scoped
1 parent b993088 commit 7509d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/apify/_actor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,11 +900,11 @@ async def reboot(
900900
self.log.error('Actor.reboot() is only supported when running on the Apify platform.')
901901
return
902902

903-
if self._is_rebooting:
903+
if _ActorType._is_rebooting:
904904
self.log.debug('Actor is already rebooting, skipping the additional reboot call.')
905905
return
906906

907-
self._is_rebooting = True
907+
_ActorType._is_rebooting = True
908908

909909
if not custom_after_sleep:
910910
custom_after_sleep = self._configuration.metamorph_after_sleep

0 commit comments

Comments
 (0)