Query methods of cron job not showing up prior to execution start

Ihave workflow with query and signals,
when i submit this workflow as a cron, the query methods are not getting shown in ui.
when i invoke the query through tctl too the i get error
subscriptionlifecycle-report “: rpc error: code = InvalidArgument desc = java.lang.IllegalArgumentException: Unknown query type:”

however signal works just fine, also i guess if the workflow execution started (once the cron is fired)i am able to query (until execution is complete).

Is this by design or is it a bug?

1 Like

There is no way to query a workflow which is not running. If you’ve submitted it to be executed via CRON are you sure the workflow is running?

Edit: Just to be clear, you can query workflows that have been terminated or completed, but not ones that were never started.

ok. so its by design.

That is correct.