File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ async def init(self) -> None:
55
55
self ._charging_state = {}
56
56
57
57
if self ._is_at_home :
58
+ # Running on the Apify platform - fetch pricing info for the current run.
59
+
58
60
if self ._actor_run_id is None :
59
61
raise RuntimeError ('Actor run ID not found even though the Actor is running on Apify' )
60
62
@@ -82,6 +84,9 @@ async def init(self) -> None:
82
84
)
83
85
84
86
if not self ._is_at_home and self ._pricing_model == 'PAY_PER_EVENT' :
87
+ # We are not running on the Apify platform, but PPE is enabled for testing - open a dataset that
88
+ # will contain a log of all charge calls for debugging purposes.
89
+
85
90
if self ._purge_charging_log_dataset :
86
91
dataset = await Dataset .open (name = self .LOCAL_CHARGING_LOG_DATASET_NAME )
87
92
await dataset .drop ()
You can’t perform that action at this time.
0 commit comments