Alexis Manuel
12/14/2022, 2:35 PMquery test(
$repositorySelector: RepositorySelector!,
$partitionSetName: String!
)
{
partitionSetOrError(
repositorySelector: $repositorySelector
partitionSetName: $partitionSetName
) {
... on PartitionSet {
id
name
pipelineName
partitionsOrError {
... on Partitions {
results {
name
}
}
}
partitionStatusesOrError {
__typename
... on PartitionStatuses {
results {
id
partitionName
runStatus
runDuration
}
}
}
}
}
}
and I have the following response : {"error": "Unexpected token '<', \"\n<html><hea\"... is not valid JSON"}
Am I missing something or is it a known problem ?
I am using Dagster & Dagit version 1.0.17, deployed on K8S.jamie
12/14/2022, 8:26 PMdish
12/14/2022, 8:50 PMAlexis Manuel
12/14/2022, 8:59 PMquery FilteredRunsQuery {
runsOrError(filter: { statuses: [FAILURE] }) {
__typename
... on Runs {
results {
runId
jobName
status
runConfigYaml
stats {
... on RunStatsSnapshot {
startTime
endTime
stepsFailed
}
}
}
}
}
}
dish
12/14/2022, 9:05 PMAlexis Manuel
12/14/2022, 9:06 PMdish
12/14/2022, 9:06 PMalex
12/14/2022, 9:08 PMlimit
on your runsOrError
callAlexis Manuel
12/14/2022, 9:12 PMalex
12/14/2022, 9:15 PMAlexis Manuel
12/14/2022, 9:21 PMStack Trace:
File "/usr/local/lib/python3.7/site-packages/dagster/_core/workspace/context.py", line 535, in _load_location
location = self._create_location_from_origin(origin)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/workspace/context.py", line 460, in _create_location_from_origin
return origin.create_location()
File "/usr/local/lib/python3.7/site-packages/dagster/_core/host_representation/origin.py", line 329, in create_location
return GrpcServerRepositoryLocation(self)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/host_representation/repository_location.py", line 569, in __init__
list_repositories_response = sync_list_repositories_grpc(self.client)
File "/usr/local/lib/python3.7/site-packages/dagster/_api/list_repositories.py", line 19, in sync_list_repositories_grpc
api_client.list_repositories(),
File "/usr/local/lib/python3.7/site-packages/dagster/_grpc/client.py", line 211, in list_repositories
res = self._query("ListRepositories", api_pb2.ListRepositoriesRequest)
File "/usr/local/lib/python3.7/site-packages/dagster/_grpc/client.py", line 141, in _query
raise DagsterUserCodeUnreachableError("Could not reach user code server") from e
{}
The above exception was caused by the following exception:
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "DNS resolution failed for elt:3031: C-ares status is not ARES_SUCCESS qtype=A name=elt is_balancer=0: Could not contact DNS servers"
debug_error_string = "{"created":"@1671033666.514173394","description":"DNS resolution failed for elt:3031: C-ares status is not ARES_SUCCESS qtype=A name=elt is_balancer=0: Could not contact DNS servers","file":"src/core/lib/transport/error_utils.cc","file_line":167,"grpc_status":14}"
I think it can be related to another problem I have with my infrastructure. Can I mention you in the related thread ?grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.DEADLINE_EXCEEDED
details = "Deadline Exceeded"
debug_error_string = "{"created":"@1671053109.330323489","description":"Deadline Exceeded","file":"src/core/ext/filters/deadline/deadline_filter.cc","file_line":81,"grpc_status":4}"
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/graphql/execution/executor.py", line 452, in resolve_or_error
return executor.execute(resolve_fn, source, info, **args)
File "/usr/local/lib/python3.7/site-packages/graphql/execution/executors/sync.py", line 16, in execute
return fn(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/dagster_graphql/schema/external.py", line 195, in resolve_schedules
for schedule in self._repository.get_external_schedules()
File "/usr/local/lib/python3.7/site-packages/dagster_graphql/schema/external.py", line 195, in <listcomp>
for schedule in self._repository.get_external_schedules()
File "/usr/local/lib/python3.7/site-packages/dagster_graphql/implementation/loader.py", line 252, in get_schedule_state
states = self._get(RepositoryDataType.SCHEDULE_STATES, schedule_name, 1)
File "/usr/local/lib/python3.7/site-packages/dagster_graphql/implementation/loader.py", line 59, in _get
self._fetch(data_type, limit)
File "/usr/local/lib/python3.7/site-packages/dagster_graphql/implementation/loader.py", line 174, in _fetch
instigator_type=InstigatorType.SCHEDULE,
File "/usr/local/lib/python3.7/site-packages/dagster/_utils/__init__.py", line 640, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/instance/__init__.py", line 1979, in all_instigator_state
repository_origin_id, repository_selector_id, instigator_type
File "/usr/local/lib/python3.7/site-packages/dagster/_core/storage/schedules/sql_schedule_storage.py", line 54, in all_instigator_state
if self.has_instigators_table() and self.has_built_index(SCHEDULE_JOBS_SELECTOR_ID):
File "/usr/local/lib/python3.7/site-packages/dagster/_core/storage/schedules/sql_schedule_storage.py", line 237, in has_instigators_table
return self._has_instigators_table(conn)
File "/usr/local/lib/python3.7/site-packages/dagster/_core/storage/schedules/sql_schedule_storage.py", line 240, in _has_instigators_table
table_names = db.inspect(conn).get_table_names()
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/reflection.py", line 267, in get_table_names
conn, schema, info_cache=self.info_cache
File "<string>", line 2, in get_table_names
File "/usr/local/lib/python3.7/site-packages/sqlalchemy/engine/reflection.py", line 55, in cache
alex
12/14/2022, 10:05 PMStatusCode.DEADLINE_EXCEEDEDthis means the user code server took longer to respond than the timeout , default of 60 sec. I would guess you have a slow/heavy schedule or sensor
Alexis Manuel
12/14/2022, 10:10 PMalex
12/14/2022, 10:15 PM@schedule
/ @sensor
decorated function that generates RunRequests
/ config taking longer than 60 secondsAlexis Manuel
12/14/2022, 10:17 PMalex
12/14/2022, 10:21 PMDAGSTER_GRPC_TIMEOUT_SECONDS
Alexis Manuel
12/14/2022, 10:22 PMbuild_schedule_from_partitioned_job
to create the schedule, should I create my own implementation of it then ?alex
12/14/2022, 10:28 PMAlexis Manuel
12/14/2022, 10:30 PMmy_job = define_asset_job(
"my_job",
tags=TAGS,
selection=[
"asset1",
"asset2",
"asset3",
"asset4",
"asset5",
"asset6",
],
partitions_def=fifteen_minute_partitions,
)
The partition definition:
fifteen_minute_partitions = TimeWindowPartitionsDefinition(
cron_schedule="*/15 * * * *",
start=datetime(2022, 1, 1, 0, 0, 0),
fmt="%Y-%m-%d %H:%M",
timezone="Europe/Paris",
)
alex
12/14/2022, 10:39 PMpy-spy
Alexis Manuel
12/14/2022, 10:42 PMsandy
12/15/2022, 2:47 AMAlexis Manuel
12/15/2022, 6:06 AM