Thomas Rolfsnes
02/23/2023, 11:15 AMdagster_cloud_cli.core.errors.GraphQLStorageError: Error in GraphQL response: [{'message': 'User code not permitted to update asset cached status data', 'locations': [{'line': 4, 'column': 13}], 'path': ['eventLogs', 'UpdateAssetCachedStatusData']}]
on ticks.
This fails even if the decorated function simply returns at once, like this:
@freshness_policy_sensor(asset_selection=AssetSelection.groups("pbi"))
def freshness_alerting_sensor(context: FreshnessPolicySensorContext):
return
I have two assets with defined FreshnessPolicies, one of them is defined like this:
@asset(freshness_policy=FreshnessPolicy(maximum_lag_minutes=60*24*8),
required_resource_keys={"pbi"},
compute_kind="PBI",
non_argument_deps={"fact_ml_olo_results",
"fact_bc_prices",
"dim_time",
"dim_issue",
"dim_publication",
"dim_olo_issue",
"dim_bc_retailer",
"dim_bc_issue"})
def OLO(context) -> Output:
r = context.resources.pbi.refresh_dataset('OLO')
return Output(r, metadata=r)
The assets work without issues. This is in Dagster Cloud.claire
02/23/2023, 6:59 PMThomas Rolfsnes
02/23/2023, 7:18 PMclaire
02/23/2023, 7:19 PMThomas Rolfsnes
02/23/2023, 7:20 PMThomas Rolfsnes
02/27/2023, 9:24 AMclaire
02/27/2023, 5:49 PM