File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -242,9 +242,12 @@ async def _make_actor(
242
242
actor_client = apify_client_async .actor (created_actor ['id' ])
243
243
244
244
print (f'Building Actor { actor_name } ...' )
245
- build = await actor_client .build (version_number = '0.0' , wait_for_finish = 300 )
245
+ build_result = await actor_client .build (version_number = '0.0' , wait_for_finish = 60 )
246
+ build_client = apify_client_async .build (build_result ['id' ])
247
+ build_client_result = await build_client .wait_for_finish (wait_secs = 600 )
246
248
247
- assert build ['status' ] == ActorJobStatus .SUCCEEDED
249
+ assert build_client_result is not None
250
+ assert build_client_result ['status' ] == ActorJobStatus .SUCCEEDED
248
251
249
252
# We only mark the client for cleanup if the build succeeded,
250
253
# so that if something goes wrong here,
You can’t perform that action at this time.
0 commit comments