Skip to content

No Endpoint for RunsClient.abort() #190

Closed
@Hardik7843

Description

@Hardik7843

I am trying to run an actor for multiple times. the problem is that I don't want the scrapper to run more than 60 seconds. if running abort the run and return dataset.

apify_client = ApifyClient(client_id)
task = apify_client.task(task_id)

start = time.time()
task.call(wait_secs = 30)
end = time.time()
print(f"Run finished in : {end - start}")

last_run  = task.last_run(status='RUNNING' , origin = 'API')

aborted_info = last_run.abort() 

The error message says there is no end-point for abort.
apify_client._errors.ApifyApiError: We have bad news: there is no API endpoint at this URL. Did you specify it correctly?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions