I'm thinking of switching an actor to pay per results, i didn't find any explicit exemple using the SDK, I setup the dataset unit name to my-actor-results
what do you mean try ? how to make sure users are being charged for results if it's not set to the right dataset ^^ Do you use dataset.push on the dataset unit name you setup when publishing your actor to the store ?
My question is prettry straight forward, When setting an actor on the store , should i use await Actor.push_data() to save results on the default dataset for each run Or do i have to create a dataset with the same dataset unit name (defined on the platform when publishing an actor to the store with pay per results pricing plan) dataset_client = await Actor.open_dataset(name=βmy-actor-results')await dataset_client.push_data(data)
Hey , PPR actors need to push items to their default dataset in order to charge users.
Generally actors should push to default datasets (with await Actor.push_data()) so that one run's results don't get mixed with results from other runs.