We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c11b5d7 commit 7202c17Copy full SHA for 7202c17
src/apify/_actor.py
@@ -735,12 +735,14 @@ async def start(
735
736
if timeout == 'RemainingTime':
737
actor_start_timeout = self._get_remaining_time()
738
- elif isinstance(timeout, str):
+ elif timeout is None:
739
+ actor_start_timeout = None
740
+ elif isinstance(timeout, timedelta):
741
+ actor_start_timeout = timeout
742
+ else:
743
raise ValueError(
- f'`timeout` can be `None`, `RemainingTime` literal or `timedelta` instance, but is {timeout=}'
744
+ f'Invalid timeout {timeout!r}: expected `None`, `"RemainingTime"`, or a `timedelta`.'
745
)
- else:
- actor_start_timeout = timeout
746
747
api_result = await client.actor(actor_id).start(
748
run_input=run_input,
0 commit comments