all_sources_running.sql 760 B

1234567891011121314151617181920
  1. -- Copyright Materialize, Inc. and contributors. All rights reserved.
  2. --
  3. -- Use of this software is governed by the Business Source License
  4. -- included in the LICENSE file at the root of this repository.
  5. --
  6. -- As of the Change Date specified in that file, in accordance with
  7. -- the Business Source License, use of this software will be governed
  8. -- by the Apache License, Version 2.0.
  9. select *
  10. from mz_internal.mz_source_statuses
  11. join mz_sources using (id)
  12. join mz_schemas on (schema_id = mz_schemas.id)
  13. join mz_databases on (database_id = mz_databases.id)
  14. where mz_databases.name = 'qa_canary_environment'
  15. and not (
  16. status = 'running' or
  17. (mz_sources.type = 'progress' and status = 'created') or
  18. (mz_sources.type = 'subsource' and status = 'starting')
  19. )