earthcube / scheduler

Scheduling approaches related to gleaner tooling
Apache License 2.0
0 stars 0 forks source link

add check to see that graph namesspace exists #110

Open valentinedwv opened 3 weeks ago

valentinedwv commented 3 weeks ago

Invalid query was really no namespace

Exception: Invalid query
  File "/usr/local/lib/python3.9/site-packages/dagster/_core/execution/plan/utils.py", line 54, in op_execution_error_boundary
    yield
  File "/usr/local/lib/python3.9/site-packages/dagster/_utils/__init__.py", line 468, in iterate_with_context
    next_output = next(iterator)
  File "/usr/local/lib/python3.9/site-packages/dagster/_core/execution/plan/compute_generator.py", line 141, in _coerce_op_compute_fn_to_iterator
    result = invoke_compute_fn(
  File "/usr/local/lib/python3.9/site-packages/dagster/_core/execution/plan/compute_generator.py", line 129, in invoke_compute_fn
    return fn(context, **args_to_pass) if context_arg_provided else fn(**args_to_pass)
  File "/usr/src/app/workflows/tasks/tasks/assets/all_graph_stats.py", line 66, in sos_types
    report = queryWithSparql("all_count_types", graphendpoint, parameters=None)
  File "/usr/local/lib/python3.9/site-packages/ec/graph/sparql_query.py", line 39, in queryWithSparql
    q_df = sparqldataframe.query(endpoint, thsGraphQuery)
  File "/usr/local/lib/python3.9/site-packages/sparqldataframe/__init__.py", line 24, in query
    raise Exception('Invalid query')