Results

By type

          mariadb 07:22:44.80 
mariadb 07:22:44.80 Welcome to the Bitnami mariadb-galera container
mariadb 07:22:44.81 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mariadb-galera
mariadb 07:22:44.82 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mariadb-galera/issues
mariadb 07:22:44.83 
mariadb 07:22:44.83 INFO  ==> ** Starting MariaDB setup **
mariadb 07:22:44.89 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mariadb 07:22:44.99 INFO  ==> Initializing mariadb database
mariadb 07:22:45.00 DEBUG ==> Ensuring expected directories/files exist
mariadb 07:22:45.06 INFO  ==> Updating 'my.cnf' with custom configuration
mariadb 07:22:45.08 INFO  ==> Setting user option
mariadb 07:22:45.08 DEBUG ==> Setting user to 'my-user' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 07:22:45.10 INFO  ==> Setting wsrep_node_name option
mariadb 07:22:45.11 DEBUG ==> Setting wsrep_node_name to 'dev-mariadb-galera-1' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 07:22:45.12 INFO  ==> Setting wsrep_node_address option
mariadb 07:22:45.13 DEBUG ==> Setting wsrep_node_address to '10.242.130.140' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 07:22:45.17 INFO  ==> Setting wsrep_cluster_address option
mariadb 07:22:45.17 DEBUG ==> Setting wsrep_cluster_address to 'gcomm://mariadb-galera-headless.onap.svc.cluster.local' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 07:22:45.19 INFO  ==> Setting wsrep_sst_auth option
mariadb 07:22:45.20 DEBUG ==> Setting wsrep_sst_auth to 'mariabackup:AE39hEL5' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 07:22:45.24 INFO  ==> ** MariaDB setup finished! **

mariadb 07:22:45.34 INFO  ==> ** Starting MariaDB **
mariadb 07:22:45.35 INFO  ==> Setting previous boot
2021-05-21  7:22:45 0 [Warning] WSREP: option --wsrep-causal-reads is deprecated
2021-05-21  7:22:45 0 [Warning] WSREP: --wsrep-causal-reads=ON takes precedence over --wsrep-sync-wait=0. WSREP_SYNC_WAIT_BEFORE_READ is on
2021-05-21  7:22:45 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (mysqld 10.5.8-MariaDB-log) starting as process 1 ...
2021-05-21  7:22:45 0 [Note] WSREP: Loading provider /opt/bitnami/mariadb/lib/libgalera_smm.so initial position: 00000000-0000-0000-0000-000000000000:-1
2021-05-21  7:22:45 0 [Note] WSREP: wsrep_load(): loading provider library '/opt/bitnami/mariadb/lib/libgalera_smm.so'
2021-05-21  7:22:45 0 [Note] WSREP: wsrep_load(): Galera 4.7(rXXXX) by Codership Oy  loaded successfully.
2021-05-21  7:22:45 0 [Note] WSREP: CRC-32C: using 64-bit x86 acceleration.
2021-05-21  7:22:45 0 [Warning] WSREP: Could not open state file for reading: '/bitnami/mariadb/data//grastate.dat'
2021-05-21  7:22:45 0 [Note] WSREP: Found saved state: 00000000-0000-0000-0000-000000000000:-1, safe_to_bootstrap: 1
2021-05-21  7:22:45 0 [Note] WSREP: GCache DEBUG: opened preamble:
Version: 0
UUID: 00000000-0000-0000-0000-000000000000
Seqno: -1 - -1
Offset: -1
Synced: 0
2021-05-21  7:22:45 0 [Note] WSREP: Skipped GCache ring buffer recovery: could not determine history UUID.
2021-05-21  7:22:45 0 [Note] WSREP: Passing config to GCS: base_dir = /bitnami/mariadb/data/; base_host = 10.242.130.140; base_port = 4567; cert.log_conflicts = no; cert.optimistic_pa = yes; debug = no; evs.auto_evict = 0; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /bitnami/mariadb/data/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = galera.cache; gcache.page_size = 128M; gcache.recover = yes; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.segment = 0; gmcast.version = 0; pc.announce_timeout = PT3S
2021-05-21  7:22:45 0 [Note] WSREP: Start replication
2021-05-21  7:22:45 0 [Note] WSREP: Connecting with bootstrap option: 0
2021-05-21  7:22:45 0 [Note] WSREP: Setting GCS initial position to 00000000-0000-0000-0000-000000000000:-1
2021-05-21  7:22:45 0 [Note] WSREP: protonet asio version 0
2021-05-21  7:22:45 0 [Note] WSREP: Using CRC-32C for message checksums.
2021-05-21  7:22:45 0 [Note] WSREP: backend: asio
2021-05-21  7:22:45 0 [Note] WSREP: gcomm thread scheduling priority set to other:0 
2021-05-21  7:22:45 0 [Warning] WSREP: access file(/bitnami/mariadb/data//gvwstate.dat) failed(No such file or directory)
2021-05-21  7:22:45 0 [Note] WSREP: restore pc from disk failed
2021-05-21  7:22:45 0 [Note] WSREP: GMCast version 0
2021-05-21  7:22:45 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567
2021-05-21  7:22:45 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') multicast: , ttl: 1
2021-05-21  7:22:45 0 [Note] WSREP: EVS version 1
2021-05-21  7:22:45 0 [Note] WSREP: gcomm: connecting to group 'galera', peer 'mariadb-galera-headless.onap.svc.cluster.local:'
2021-05-21  7:22:45 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') connection established to 17e51012-bcd8 tcp://10.242.187.198:4567
2021-05-21  7:22:45 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: 
2021-05-21  7:22:45 0 [Note] WSREP: EVS version upgrade 0 -> 1
2021-05-21  7:22:45 0 [Note] WSREP: declaring 17e51012-bcd8 at tcp://10.242.187.198:4567 stable
2021-05-21  7:22:45 0 [Note] WSREP: PC protocol upgrade 0 -> 1
2021-05-21  7:22:45 0 [Note] WSREP: Node 17e51012-bcd8 state prim
2021-05-21  7:22:45 0 [Note] WSREP: view(view_id(PRIM,17e51012-bcd8,2) memb {
	17e51012-bcd8,0
	568ec427-9d20,0
} joined {
} left {
} partitioned {
})
2021-05-21  7:22:45 0 [Note] WSREP: save pc into disk
2021-05-21  7:22:46 0 [Note] WSREP: gcomm: connected
2021-05-21  7:22:46 0 [Note] WSREP: Changing maximum packet size to 64500, resulting msg size: 32636
2021-05-21  7:22:46 0 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0)
2021-05-21  7:22:46 0 [Note] WSREP: Opened channel 'galera'
2021-05-21  7:22:46 0 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 1, memb_num = 2
2021-05-21  7:22:46 0 [Note] WSREP: STATE EXCHANGE: Waiting for state UUID.
2021-05-21  7:22:46 1 [Note] WSREP: Starting rollbacker thread 1
2021-05-21  7:22:46 2 [Note] WSREP: Starting applier thread 2
2021-05-21  7:22:46 0 [Note] WSREP: STATE EXCHANGE: sent state msg: 56dcf5a4-ba05-11eb-aeea-078d9b7a55b9
2021-05-21  7:22:46 0 [Note] WSREP: STATE EXCHANGE: got state msg: 56dcf5a4-ba05-11eb-aeea-078d9b7a55b9 from 0 (dev-mariadb-galera-0)
2021-05-21  7:22:46 0 [Note] WSREP: STATE EXCHANGE: got state msg: 56dcf5a4-ba05-11eb-aeea-078d9b7a55b9 from 1 (dev-mariadb-galera-1)
2021-05-21  7:22:46 0 [Note] WSREP: Quorum results:
	version    = 6,
	component  = PRIMARY,
	conf_id    = 1,
	members    = 1/2 (joined/total),
	act_id     = 13,
	last_appl. = 12,
	protocols  = 2/10/4 (gcs/repl/appl),
	vote policy= 0,
	group UUID = 12d110b2-ba05-11eb-bc48-36ceaedc1255
2021-05-21  7:22:46 0 [Note] WSREP: Flow-control interval: [23, 23]
2021-05-21  7:22:46 0 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 14)
2021-05-21  7:22:46 2 [Note] WSREP: ####### processing CC 14, local, ordered
2021-05-21  7:22:46 2 [Note] WSREP: Process first view: 12d110b2-ba05-11eb-bc48-36ceaedc1255 my uuid: 568ec427-ba05-11eb-9d20-0f10674f4b4d
2021-05-21  7:22:46 2 [Note] WSREP: Server dev-mariadb-galera-1 connected to cluster at position 12d110b2-ba05-11eb-bc48-36ceaedc1255:14 with ID 568ec427-ba05-11eb-9d20-0f10674f4b4d
2021-05-21  7:22:46 2 [Note] WSREP: Server status change disconnected -> connected
2021-05-21  7:22:46 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:22:46 2 [Note] WSREP: ####### My UUID: 568ec427-ba05-11eb-9d20-0f10674f4b4d
2021-05-21  7:22:46 2 [Note] WSREP: Cert index reset to 00000000-0000-0000-0000-000000000000:-1 (proto: 10), state transfer needed: yes
2021-05-21  7:22:46 0 [Note] WSREP: Service thread queue flushed.
2021-05-21  7:22:46 2 [Note] WSREP: ####### Assign initial position for certification: 00000000-0000-0000-0000-000000000000:-1, protocol version: -1
2021-05-21  7:22:46 2 [Note] WSREP: State transfer required: 
	Group state: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
	Local state: 00000000-0000-0000-0000-000000000000:-1
2021-05-21  7:22:46 2 [Note] WSREP: Server status change connected -> joiner
2021-05-21  7:22:46 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:22:46 0 [Note] WSREP: Joiner monitor thread started to monitor
2021-05-21  7:22:46 0 [Note] WSREP: Running: 'wsrep_sst_mariabackup --role 'joiner' --address '10.242.130.140' --datadir '/bitnami/mariadb/data/' --defaults-file '/opt/bitnami/mariadb/conf/my.cnf' --parent '1' --binlog 'mysql-bin' --mysqld-args --defaults-file=/opt/bitnami/mariadb/conf/my.cnf --basedir=/opt/bitnami/mariadb --datadir=/bitnami/mariadb/data --socket=/opt/bitnami/mariadb/tmp/mysql.sock --pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid'
WSREP_SST: [INFO] Streaming with xbstream (20210521 07:22:47.029)
WSREP_SST: [INFO] Using socat as streamer (20210521 07:22:47.040)
WSREP_SST: [INFO] Evaluating timeout -k 310 300 socat -u TCP-LISTEN:4444,reuseaddr stdio | mbstream -x; RC=( ${PIPESTATUS[@]} ) (20210521 07:22:47.144)
2021-05-21  7:22:47 2 [Note] WSREP: Prepared SST request: mariabackup|10.242.130.140:4444/xtrabackup_sst//1
2021-05-21  7:22:47 2 [Note] WSREP: ####### IST uuid:00000000-0000-0000-0000-000000000000 f: 0, l: 14, STRv: 3
2021-05-21  7:22:47 2 [Note] WSREP: IST receiver addr using tcp://10.242.130.140:4568
2021-05-21  7:22:47 2 [Note] WSREP: Prepared IST receiver for 0-14, listening at: tcp://10.242.130.140:4568
2021-05-21  7:22:47 0 [Note] WSREP: Member 1.0 (dev-mariadb-galera-1) requested state transfer from '*any*'. Selected 0.0 (dev-mariadb-galera-0)(SYNCED) as donor.
2021-05-21  7:22:47 0 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 14)
2021-05-21  7:22:47 2 [Note] WSREP: Requesting state transfer: success, donor: 0
2021-05-21  7:22:47 2 [Note] WSREP: Resetting GCache seqno map due to different histories.
2021-05-21  7:22:47 2 [Note] WSREP: GCache history reset: 00000000-0000-0000-0000-000000000000:0 -> 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
WSREP_SST: [INFO] Proceeding with SST (20210521 07:22:48.017)
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr stdio | mbstream -x; RC=( ${PIPESTATUS[@]} ) (20210521 07:22:48.020)
WSREP_SST: [INFO] Cleaning the existing datadir and innodb-data/log directories (20210521 07:22:48.026)
WSREP_SST: [INFO] Waiting for SST streaming to complete! (20210521 07:22:48.066)
2021-05-21  7:22:48 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') turning message relay requesting off
2021-05-21  7:23:00 0 [Note] WSREP: 0.0 (dev-mariadb-galera-0): State transfer to 1.0 (dev-mariadb-galera-1) complete.
2021-05-21  7:23:00 0 [Note] WSREP: Member 0.0 (dev-mariadb-galera-0) synced with group.
WSREP_SST: [INFO] Preparing the backup at /bitnami/mariadb/data//.sst (20210521 07:23:00.782)
WSREP_SST: [INFO] Evaluating /opt/bitnami/mariadb//bin/mariabackup --prepare --no-version-check  $INNOEXTRA --target-dir=${DATA} --mysqld-args $WSREP_SST_OPT_MYSQLD &> /bitnami/mariadb/data//mariabackup.prepare.log (20210521 07:23:00.791)
WSREP_SST: [INFO] Moving the backup to /bitnami/mariadb/data/ (20210521 07:23:05.458)
WSREP_SST: [INFO] Evaluating /opt/bitnami/mariadb//bin/mariabackup --defaults-file=/opt/bitnami/mariadb/conf/my.cnf   --move-back --no-version-check   --move-back --force-non-empty-directories --target-dir=${DATA} &> /bitnami/mariadb/data//mariabackup.move.log (20210521 07:23:05.465)
WSREP_SST: [INFO] Move successful, removing /bitnami/mariadb/data//.sst (20210521 07:23:05.723)
WSREP_SST: [INFO] Galera co-ords from recovery: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14 (20210521 07:23:05.755)
WSREP_SST: [INFO] Total time on joiner: 0 seconds (20210521 07:23:05.765)
WSREP_SST: [INFO] Removing the sst_in_progress file (20210521 07:23:05.773)
2021-05-21  7:23:05 3 [Note] WSREP: SST received
2021-05-21  7:23:05 3 [Note] WSREP: Server status change joiner -> initializing
2021-05-21  7:23:05 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:23:05 0 [Warning] The parameter innodb_file_format is deprecated and has no effect. It may be removed in future releases. See https://mariadb.com/kb/en/library/xtradbinnodb-file-format/
2021-05-21  7:23:05 0 [Warning] The parameter innodb_log_files_in_group is deprecated and has no effect.
2021-05-21  7:23:05 0 [Note] InnoDB: Using Linux native AIO
2021-05-21  7:23:05 0 [Note] InnoDB: Uses event mutexes
2021-05-21  7:23:05 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-05-21  7:23:05 0 [Note] InnoDB: Number of pools: 1
2021-05-21  7:23:05 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2021-05-21  7:23:05 0 [Note] mysqld: O_TMPFILE is not supported on /opt/bitnami/mariadb/tmp (disabling future attempts)
2021-05-21  7:23:05 0 [Note] InnoDB: Initializing buffer pool, total size = 2147483648, chunk size = 134217728
2021-05-21  7:23:05 0 [Note] InnoDB: Completed initialization of buffer pool
2021-05-21  7:23:05 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-05-21  7:23:06 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 134217728 bytes
2021-05-21  7:23:06 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2021-05-21  7:23:06 0 [Note] InnoDB: New log file created, LSN=76920
2021-05-21  7:23:06 0 [Note] InnoDB: 128 rollback segments are active.
2021-05-21  7:23:06 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-05-21  7:23:06 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-05-21  7:23:06 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-05-21  7:23:06 0 [Note] InnoDB: 10.5.8 started; log sequence number 0; transaction id 70
2021-05-21  7:23:06 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-05-21  7:23:06 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
/opt/bitnami/mariadb/sbin/mysqld, Version: 10.5.8-MariaDB-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /opt/bitnami/mariadb/tmp/mysql.sock
Time		    Id Command	Argument
2021-05-21  7:23:06 0 [Note] Recovering after a crash using mysql-bin
2021-05-21  7:23:06 0 [Note] Starting crash recovery...
2021-05-21  7:23:06 0 [Note] Crash recovery finished.
2021-05-21  7:23:06 0 [Note] InnoDB: Buffer pool(s) load completed at 210521  7:23:06
2021-05-21  7:23:06 0 [Note] Server socket created on IP: '0.0.0.0'.
2021-05-21  7:23:06 0 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2021-05-21  7:23:06 0 [Note] WSREP: wsrep_init_schema_and_SR 0x0
2021-05-21  7:23:06 0 [Note] WSREP: Server initialized
2021-05-21  7:23:06 0 [Note] WSREP: Server status change initializing -> initialized
2021-05-21  7:23:06 0 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:23:06 3 [Note] WSREP: Server status change initialized -> joined
2021-05-21  7:23:06 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:23:06 3 [Note] WSREP: Recovered position from storage: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
2021-05-21  7:23:06 6 [Note] WSREP: Starting applier thread 6
2021-05-21  7:23:06 7 [Note] WSREP: Starting applier thread 7
2021-05-21  7:23:06 8 [Note] WSREP: Starting applier thread 8
2021-05-21  7:23:06 0 [Note] Reading of all Master_info entries succeeded
2021-05-21  7:23:06 0 [Note] Added new Master_info '' to hash table
2021-05-21  7:23:06 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '10.5.8-MariaDB-log'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2021-05-21  7:23:06 3 [Note] WSREP: Recovered view from SST:
  id: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
  status: primary
  protocol_version: 4
  capabilities: MULTI-MASTER, CERTIFICATION, PARALLEL_APPLYING, REPLAY, ISOLATION, PAUSE, CAUSAL_READ, INCREMENTAL_WS, UNORDERED, PREORDERED, STREAMING, NBO
  final: no
  own_index: 1
  members(2):
	0: 17e51012-ba05-11eb-bcd8-3a96b080cdc2, dev-mariadb-galera-0
	1: 568ec427-ba05-11eb-9d20-0f10674f4b4d, dev-mariadb-galera-1

2021-05-21  7:23:06 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:23:06 11 [Note] WSREP: Recovered cluster id 12d110b2-ba05-11eb-bc48-36ceaedc1255
2021-05-21  7:23:06 3 [Note] WSREP: SST received: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
2021-05-21  7:23:06 0 [Note] WSREP: Joiner monitor thread ended with total time 20 sec
2021-05-21  7:23:06 2 [Note] WSREP: Installed new state from SST: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
2021-05-21  7:23:06 2 [Note] WSREP: Cert. index preload up to 14
2021-05-21  7:23:06 0 [Note] WSREP: ####### IST applying starts with 15
2021-05-21  7:23:06 0 [Note] WSREP: ####### IST current seqno initialized to 14
2021-05-21  7:23:06 0 [Note] WSREP: Receiving IST...  0.0% (0/1 events) complete.
2021-05-21  7:23:06 0 [Note] WSREP: IST preload starting at 14
2021-05-21  7:23:06 0 [Note] WSREP: REPL Protocols: 10 (5)
2021-05-21  7:23:06 0 [Note] WSREP: Service thread queue flushed.
2021-05-21  7:23:06 0 [Note] WSREP: ####### Assign initial position for certification: 12d110b2-ba05-11eb-bc48-36ceaedc1255:13, protocol version: 5
2021-05-21  7:23:06 0 [Note] WSREP: REPL Protocols: 10 (5)
2021-05-21  7:23:06 0 [Note] WSREP: ####### Adjusting cert position: 13 -> 14
2021-05-21  7:23:06 0 [Note] WSREP: Service thread queue flushed.
2021-05-21  7:23:06 0 [Note] WSREP: Lowest cert index boundary for CC from preload: 14
2021-05-21  7:23:06 0 [Note] WSREP: Min available from gcache for CC from preload: 14
2021-05-21  7:23:06 0 [Note] WSREP: Receiving IST...100.0% (1/1 events) complete.
2021-05-21  7:23:06 2 [Note] WSREP: IST received: 12d110b2-ba05-11eb-bc48-36ceaedc1255:14
2021-05-21  7:23:06 2 [Note] WSREP: Lowest cert index boundary for CC from sst: 14
2021-05-21  7:23:06 2 [Note] WSREP: Min available from gcache for CC from sst: 14
2021-05-21  7:23:06 0 [Note] WSREP: 1.0 (dev-mariadb-galera-1): State transfer from 0.0 (dev-mariadb-galera-0) complete.
2021-05-21  7:23:06 0 [Note] WSREP: Shifting JOINER -> JOINED (TO: 14)
2021-05-21  7:23:06 0 [Note] WSREP: Member 1.0 (dev-mariadb-galera-1) synced with group.
2021-05-21  7:23:06 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 14)
2021-05-21  7:23:06 2 [Note] WSREP: Server dev-mariadb-galera-1 synced with group
2021-05-21  7:23:06 2 [Note] WSREP: Server status change joined -> synced
2021-05-21  7:23:06 2 [Note] WSREP: Synchronized with group, ready for connections
2021-05-21  7:23:06 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
# Time: 210521  7:23:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 13  Schema:   QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000253  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 13  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:23:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 16  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000238  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 16  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
2021-05-21  7:23:23 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') connection established to 6d18acc8-b979 tcp://10.242.66.216:4567
2021-05-21  7:23:23 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: 
2021-05-21  7:23:23 0 [Note] WSREP: declaring 17e51012-bcd8 at tcp://10.242.187.198:4567 stable
2021-05-21  7:23:23 0 [Note] WSREP: declaring 6d18acc8-b979 at tcp://10.242.66.216:4567 stable
2021-05-21  7:23:23 0 [Note] WSREP: Node 17e51012-bcd8 state prim
2021-05-21  7:23:23 0 [Note] WSREP: view(view_id(PRIM,17e51012-bcd8,3) memb {
	17e51012-bcd8,0
	568ec427-9d20,0
	6d18acc8-b979,0
} joined {
} left {
} partitioned {
})
2021-05-21  7:23:23 0 [Note] WSREP: save pc into disk
2021-05-21  7:23:23 0 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 1, memb_num = 3
2021-05-21  7:23:23 0 [Note] WSREP: STATE EXCHANGE: Waiting for state UUID.
2021-05-21  7:23:23 0 [Note] WSREP: STATE EXCHANGE: sent state msg: 6d674e12-ba05-11eb-bd4c-4e03205603d4
2021-05-21  7:23:23 0 [Note] WSREP: STATE EXCHANGE: got state msg: 6d674e12-ba05-11eb-bd4c-4e03205603d4 from 0 (dev-mariadb-galera-0)
2021-05-21  7:23:23 0 [Note] WSREP: STATE EXCHANGE: got state msg: 6d674e12-ba05-11eb-bd4c-4e03205603d4 from 1 (dev-mariadb-galera-1)
2021-05-21  7:23:24 0 [Note] WSREP: STATE EXCHANGE: got state msg: 6d674e12-ba05-11eb-bd4c-4e03205603d4 from 2 (dev-mariadb-galera-2)
2021-05-21  7:23:24 0 [Note] WSREP: Quorum results:
	version    = 6,
	component  = PRIMARY,
	conf_id    = 2,
	members    = 2/3 (joined/total),
	act_id     = 14,
	last_appl. = 12,
	protocols  = 2/10/4 (gcs/repl/appl),
	vote policy= 0,
	group UUID = 12d110b2-ba05-11eb-bc48-36ceaedc1255
2021-05-21  7:23:24 0 [Note] WSREP: Flow-control interval: [28, 28]
2021-05-21  7:23:24 2 [Note] WSREP: ####### processing CC 15, local, ordered
2021-05-21  7:23:24 2 [Note] WSREP: ####### My UUID: 568ec427-ba05-11eb-9d20-0f10674f4b4d
2021-05-21  7:23:24 2 [Note] WSREP: Skipping cert index reset
2021-05-21  7:23:24 2 [Note] WSREP: REPL Protocols: 10 (5)
2021-05-21  7:23:24 2 [Note] WSREP: ####### Adjusting cert position: 14 -> 15
2021-05-21  7:23:24 0 [Note] WSREP: Service thread queue flushed.
2021-05-21  7:23:24 2 [Note] WSREP: ================================================
View:
  id: 12d110b2-ba05-11eb-bc48-36ceaedc1255:15
  status: primary
  protocol_version: 4
  capabilities: MULTI-MASTER, CERTIFICATION, PARALLEL_APPLYING, REPLAY, ISOLATION, PAUSE, CAUSAL_READ, INCREMENTAL_WS, UNORDERED, PREORDERED, STREAMING, NBO
  final: no
  own_index: 1
  members(3):
	0: 17e51012-ba05-11eb-bcd8-3a96b080cdc2, dev-mariadb-galera-0
	1: 568ec427-ba05-11eb-9d20-0f10674f4b4d, dev-mariadb-galera-1
	2: 6d18acc8-ba05-11eb-b979-023f90f70ab7, dev-mariadb-galera-2
=================================================
2021-05-21  7:23:24 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2021-05-21  7:23:24 2 [Note] WSREP: Lowest cert index boundary for CC from group: 15
2021-05-21  7:23:24 2 [Note] WSREP: Min available from gcache for CC from group: 14
2021-05-21  7:23:25 0 [Note] WSREP: Member 2.0 (dev-mariadb-galera-2) requested state transfer from '*any*'. Selected 0.0 (dev-mariadb-galera-0)(SYNCED) as donor.
2021-05-21  7:23:26 0 [Note] WSREP: (568ec427-9d20, 'tcp://0.0.0.0:4567') turning message relay requesting off
# Time: 210521  7:23:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 19  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 19  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:23:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 20  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 20  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2021-05-21  7:23:38 0 [Note] WSREP: 0.0 (dev-mariadb-galera-0): State transfer to 2.0 (dev-mariadb-galera-2) complete.
2021-05-21  7:23:38 0 [Note] WSREP: Member 0.0 (dev-mariadb-galera-0) synced with group.
# Time: 210521  7:23:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 23  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 23  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2021-05-21  7:23:40 0 [Note] WSREP: 2.0 (dev-mariadb-galera-2): State transfer from 0.0 (dev-mariadb-galera-0) complete.
2021-05-21  7:23:40 0 [Note] WSREP: Member 2.0 (dev-mariadb-galera-2) synced with group.
# Time: 210521  7:23:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 24  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 24  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:23:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 27  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 27  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:23:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 28  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 28  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 31  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 31  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 32  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 32  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 35  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 35  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 36  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 36  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 41  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 41  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 42  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 42  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 45  Schema:   QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000492  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 45  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 46  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 46  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 49  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 49  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 50  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 50  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:24:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 53  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 53  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:24:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 54  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 54  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000240  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 57  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 57  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 58  Schema:   QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000325  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 58  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 61  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 61  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 62  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 62  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:25:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 65  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 65  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 66  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 66  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 69  Schema:   QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 69  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:25:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 70  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 70  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000270  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:25:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 73  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 73  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 74  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 74  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 77  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 77  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000059  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:25:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 78  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 78  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 81  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 81  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 82  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000232  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 82  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000235  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 85  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 85  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 86  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 86  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 89  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 89  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 90  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 90  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 93  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 93  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 94  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621581991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 94  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621581991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 97  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 97  Schema:   QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:26:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 98  Schema:   QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 98  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 102  Schema:   QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000578  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 102  Schema:   QC_hit: No
# Query_time: 0.001610  Lock_time: 0.001533  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:26:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 103  Schema:   QC_hit: No
# Query_time: 0.001583  Lock_time: 0.001285  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 103  Schema:   QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000376  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 106  Schema:   QC_hit: No
# Query_time: 0.002283  Lock_time: 0.001814  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 106  Schema:   QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000790  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 107  Schema:   QC_hit: No
# Query_time: 0.002327  Lock_time: 0.002189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 107  Schema:   QC_hit: No
# Query_time: 0.002702  Lock_time: 0.002563  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 110  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 110  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 111  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 111  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 114  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 114  Schema:   QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 115  Schema:   QC_hit: No
# Query_time: 0.001333  Lock_time: 0.001225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 115  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 118  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 118  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 119  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 119  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 122  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 122  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 124  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 124  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:27:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 127  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 127  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:27:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 128  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 128  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 133  Schema:   QC_hit: No
# Query_time: 0.001142  Lock_time: 0.001091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 133  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 134  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 134  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:28:07
# User@Host: ejbca[ejbca] @  [10.242.125.75]
# Thread_id: 130  Schema: ejbca  QC_hit: No
# Query_time: 0.039643  Lock_time: 0.001692  Rows_sent: 36  Rows_examined: 72
# Rows_affected: 0  Bytes_sent: 1922
use ejbca;
SET timestamp=1621582087;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'ejbca') AND (TABLE_NAME LIKE '%') AND TABLE_TYPE IN ('BASE TABLE','VIEW') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: ejbca[ejbca] @  [10.242.125.75]
# Thread_id: 130  Schema: ejbca  QC_hit: No
# Query_time: 0.007252  Lock_time: 0.000806  Rows_sent: 311  Rows_examined: 622
# Rows_affected: 0  Bytes_sent: 29965
SET timestamp=1621582087;
SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, COLUMN_NAME, CASE data_type WHEN 'bit' THEN -7 WHEN 'tinyblob' THEN -3 WHEN 'mediumblob' THEN -4 WHEN 'longblob' THEN -4 WHEN 'blob' THEN -4 WHEN 'tinytext' THEN 12 WHEN 'mediumtext' THEN -1 WHEN 'longtext' THEN -1 WHEN 'text' THEN -1 WHEN 'date' THEN 91 WHEN 'datetime' THEN 93 WHEN 'decimal' THEN 3 WHEN 'double' THEN 8 WHEN 'enum' THEN 12 WHEN 'float' THEN 7 WHEN 'int' THEN IF( COLUMN_TYPE like '%unsigned%', 4,4) WHEN 'bigint' THEN -5 WHEN 'mediumint' THEN 4 WHEN 'null' THEN 0 WHEN 'set' THEN 12 WHEN 'smallint' THEN IF( COLUMN_TYPE like '%unsigned%', 5,5) WHEN 'varchar' THEN 12 WHEN 'varbinary' THEN -3 WHEN 'char' THEN 1 WHEN 'binary' THEN -2 WHEN 'time' THEN 92 WHEN 'timestamp' THEN 93 WHEN 'tinyint' THEN IF(COLUMN_TYPE like 'tinyint(1)%',-7,-6)  WHEN 'year' THEN 91 ELSE 1111 END  DATA_TYPE, IF(COLUMN_TYPE like 'tinyint(1)%', 'BIT',  UCASE(IF( COLUMN_TYPE LIKE '%(%)%', CONCAT(SUBSTRING( COLUMN_TYPE,1, LOCATE('(',COLUMN_TYPE) - 1 ), SUBSTRING(COLUMN_TYPE ,1+locate(')', COLUMN_TYPE))), COLUMN_TYPE))) TYPE_NAME,  CASE DATA_TYPE  WHEN 'time' THEN IF(DATETIME_PRECISION = 0, 10, CAST(11 + DATETIME_PRECISION as signed integer))  WHEN 'date' THEN 10  WHEN 'datetime' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  WHEN 'timestamp' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  ELSE   IF(NUMERIC_PRECISION IS NULL, LEAST(CHARACTER_MAXIMUM_LENGTH,2147483647), NUMERIC_PRECISION)  END COLUMN_SIZE, 65535 BUFFER_LENGTH,  CONVERT (CASE DATA_TYPE WHEN 'year' THEN NUMERIC_SCALE WHEN 'tinyint' THEN 0 ELSE NUMERIC_SCALE END, UNSIGNED INTEGER) DECIMAL_DIGITS, 10 NUM_PREC_RADIX, IF(IS_NULLABLE = 'yes',1,0) NULLABLE,COLUMN_COMMENT REMARKS, COLUMN_DEFAULT COLUMN_DEF, 0 SQL_DATA_TYPE, 0 SQL_DATETIME_SUB,   LEAST(CHARACTER_OCTET_LENGTH,2147483647) CHAR_OCTET_LENGTH, ORDINAL_POSITION, IS_NULLABLE, NULL SCOPE_CATALOG, NULL SCOPE_SCHEMA, NULL SCOPE_TABLE, NULL SOURCE_DATA_TYPE, IF(EXTRA = 'auto_increment','YES','NO') IS_AUTOINCREMENT,  IF(EXTRA in ('VIRTUAL', 'PERSISTENT', 'VIRTUAL GENERATED', 'STORED GENERATED') ,'YES','NO') IS_GENERATEDCOLUMN  FROM INFORMATION_SCHEMA.COLUMNS  WHERE (TABLE_SCHEMA = 'ejbca') AND (1 = 1) AND (COLUMN_NAME LIKE '%') ORDER BY TABLE_CAT, TABLE_SCHEM, TABLE_NAME, ORDINAL_POSITION;
# User@Host: ejbca[ejbca] @  [10.242.125.75]
# Thread_id: 130  Schema: ejbca  QC_hit: No
# Query_time: 0.008943  Lock_time: 0.008742  Rows_sent: 4  Rows_examined: 8
# Rows_affected: 0  Bytes_sent: 1222
SET timestamp=1621582087;
SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, NON_UNIQUE,  TABLE_SCHEMA INDEX_QUALIFIER, INDEX_NAME, 3 TYPE, SEQ_IN_INDEX ORDINAL_POSITION, COLUMN_NAME, COLLATION ASC_OR_DESC, CARDINALITY, NULL PAGES, NULL FILTER_CONDITION FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_NAME = 'ocspresponsedata' AND (TABLE_SCHEMA = 'ejbca') ORDER BY NON_UNIQUE, TYPE, INDEX_NAME, ORDINAL_POSITION;
# Time: 210521  7:28:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 137  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 137  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 138  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 138  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: ejbca[ejbca] @  [10.242.125.75]
# Thread_id: 130  Schema: ejbca  QC_hit: No
# Query_time: 0.001384  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 465
SET timestamp=1621582091;
select profiledat0_.id as id1_27_, profiledat0_.profileName as profileN2_27_, profiledat0_.profileType as profileT3_27_, profiledat0_.rawData as rawData4_27_, profiledat0_.rowProtection as rowProte5_27_, profiledat0_.rowVersion as rowVersi6_27_ from ProfileData profiledat0_ where profiledat0_.profileType='APPROVAL_PROFILE';
# Time: 210521  7:28:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 141  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 141  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:28:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 142  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 142  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 145  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 145  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:28:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 146  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 146  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 149  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 149  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:28:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 150  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 150  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:28:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 154  Schema:   QC_hit: No
# Query_time: 0.040814  Lock_time: 0.040724  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 154  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:28:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 155  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 155  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 158  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 158  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 159  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 159  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 162  Schema:   QC_hit: No
# Query_time: 0.001093  Lock_time: 0.001030  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 162  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:29:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 163  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 163  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:29:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 166  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 166  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 167  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 167  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 170  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 170  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:29:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 171  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 171  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 174  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 174  Schema:   QC_hit: No
# Query_time: 0.001422  Lock_time: 0.001371  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:29:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 175  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 175  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:29:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 178  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 178  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:29:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 179  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 179  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 182  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 182  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 183  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 183  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 186  Schema:   QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000857  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 186  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 187  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 187  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 190  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 190  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 191  Schema:   QC_hit: No
# Query_time: 0.002109  Lock_time: 0.002024  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 191  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:30:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 194  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 194  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 195  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 195  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:30:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 198  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 198  Schema:   QC_hit: No
# Query_time: 0.000091  Lock_time: 0.000055  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 199  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 199  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000059  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:30:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 202  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 202  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:30:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 203  Schema:   QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000230  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 203  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 206  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 206  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 207  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 207  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 210  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 210  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 211  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 211  Schema:   QC_hit: No
# Query_time: 0.000102  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 214  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 214  Schema:   QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000312  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:31:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 215  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 215  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:31:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 218  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 218  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 219  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 219  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 222  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 222  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 223  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 223  Schema:   QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000318  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:31:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 227  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 227  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:31:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 228  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 228  Schema:   QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 231  Schema:   QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000505  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 231  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 232  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 232  Schema:   QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000251  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:10
# User@Host: rene[rene] @  [10.242.153.151]
# Thread_id: 235  Schema: nbi  QC_hit: No
# Query_time: 0.037688  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 80
# Rows_affected: 0  Bytes_sent: 92
use nbi;
SET timestamp=1621582330;
select table_name from information_schema.TABLES where table_type='SEQUENCE';
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 241  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 241  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:11
# User@Host: rene[rene] @  [10.242.153.151]
# Thread_id: 235  Schema: nbi  QC_hit: No
# Query_time: 0.020959  Lock_time: 0.003753  Rows_sent: 0  Rows_examined: 80
# Rows_affected: 0  Bytes_sent: 92
SET timestamp=1621582331;
select table_name from information_schema.TABLES where table_type='SEQUENCE';
# User@Host: rene[rene] @  [10.242.153.151]
# Thread_id: 235  Schema: nbi  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.000417  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1621582331;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nbi') AND (TABLE_NAME LIKE '%') AND TABLE_TYPE IN ('BASE TABLE','VIEW') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: rene[rene] @  [10.242.153.151]
# Thread_id: 235  Schema: nbi  QC_hit: No
# Query_time: 0.002035  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1247
SET timestamp=1621582331;
SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, COLUMN_NAME, CASE data_type WHEN 'bit' THEN -7 WHEN 'tinyblob' THEN -3 WHEN 'mediumblob' THEN -4 WHEN 'longblob' THEN -4 WHEN 'blob' THEN -4 WHEN 'tinytext' THEN 12 WHEN 'mediumtext' THEN -1 WHEN 'longtext' THEN -1 WHEN 'text' THEN -1 WHEN 'date' THEN 91 WHEN 'datetime' THEN 93 WHEN 'decimal' THEN 3 WHEN 'double' THEN 8 WHEN 'enum' THEN 12 WHEN 'float' THEN 7 WHEN 'int' THEN IF( COLUMN_TYPE like '%unsigned%', 4,4) WHEN 'bigint' THEN -5 WHEN 'mediumint' THEN 4 WHEN 'null' THEN 0 WHEN 'set' THEN 12 WHEN 'smallint' THEN IF( COLUMN_TYPE like '%unsigned%', 5,5) WHEN 'varchar' THEN 12 WHEN 'varbinary' THEN -3 WHEN 'char' THEN 1 WHEN 'binary' THEN -2 WHEN 'time' THEN 92 WHEN 'timestamp' THEN 93 WHEN 'tinyint' THEN IF(COLUMN_TYPE like 'tinyint(1)%',-7,-6)  WHEN 'year' THEN 91 ELSE 1111 END  DATA_TYPE, IF(COLUMN_TYPE like 'tinyint(1)%', 'BIT',  UCASE(IF( COLUMN_TYPE LIKE '%(%)%', CONCAT(SUBSTRING( COLUMN_TYPE,1, LOCATE('(',COLUMN_TYPE) - 1 ), SUBSTRING(COLUMN_TYPE ,1+locate(')', COLUMN_TYPE))), COLUMN_TYPE))) TYPE_NAME,  CASE DATA_TYPE  WHEN 'time' THEN IF(DATETIME_PRECISION = 0, 10, CAST(11 + DATETIME_PRECISION as signed integer))  WHEN 'date' THEN 10  WHEN 'datetime' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  WHEN 'timestamp' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  ELSE   IF(NUMERIC_PRECISION IS NULL, LEAST(CHARACTER_MAXIMUM_LENGTH,2147483647), NUMERIC_PRECISION)  END COLUMN_SIZE, 65535 BUFFER_LENGTH,  CONVERT (CASE DATA_TYPE WHEN 'year' THEN NUMERIC_SCALE WHEN 'tinyint' THEN 0 ELSE NUMERIC_SCALE END, UNSIGNED INTEGER) DECIMAL_DIGITS, 10 NUM_PREC_RADIX, IF(IS_NULLABLE = 'yes',1,0) NULLABLE,COLUMN_COMMENT REMARKS, COLUMN_DEFAULT COLUMN_DEF, 0 SQL_DATA_TYPE, 0 SQL_DATETIME_SUB,   LEAST(CHARACTER_OCTET_LENGTH,2147483647) CHAR_OCTET_LENGTH, ORDINAL_POSITION, IS_NULLABLE, NULL SCOPE_CATALOG, NULL SCOPE_SCHEMA, NULL SCOPE_TABLE, NULL SOURCE_DATA_TYPE, IF(EXTRA = 'auto_increment','YES','NO') IS_AUTOINCREMENT,  IF(EXTRA in ('VIRTUAL', 'PERSISTENT', 'VIRTUAL GENERATED', 'STORED GENERATED') ,'YES','NO') IS_GENERATEDCOLUMN  FROM INFORMATION_SCHEMA.COLUMNS  WHERE (TABLE_SCHEMA = 'nbi') AND (1 = 1) AND (COLUMN_NAME LIKE '%') ORDER BY TABLE_CAT, TABLE_SCHEM, TABLE_NAME, ORDINAL_POSITION;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 242  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 242  Schema:   QC_hit: No
# Query_time: 0.000096  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 245  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 245  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 248  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 248  Schema:   QC_hit: No
# Query_time: 0.000101  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 251  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 251  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 252  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 252  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 255  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 255  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 256  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 256  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:32:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 259  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 259  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:32:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 260  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 260  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 263  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 263  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 264  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 264  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 267  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 267  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 268  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 268  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:33:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 271  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 271  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 272  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 272  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 275  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 275  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 276  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 276  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 279  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 279  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
2021-05-21  7:33:41 6 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 210521  7:33:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 281  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 281  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:33:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 319  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 319  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:33:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 323  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 323  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 326  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 326  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:34:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 327  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 327  Schema:   QC_hit: No
# Query_time: 0.002282  Lock_time: 0.002116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:34:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 330  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 330  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:34:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 331  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 331  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 334  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 334  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 335  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 335  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:34:25
# User@Host: rene[rene] @  [10.242.153.151]
# Thread_id: 235  Schema: nbi  QC_hit: No
# Query_time: 0.004637  Lock_time: 0.004272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 505
SET timestamp=1621582465;
select executiont0_.internal_id as internal1_0_, executiont0_.create_date as create_d2_0_, executiont0_.last_attempt_date as last_att3_0_, executiont0_.order_item_id as order_it4_0_, executiont0_.relied_tasks as relied_t5_0_, executiont0_.service_order_info_json as service_6_0_ from execution_task executiont0_ where trim(executiont0_.relied_tasks) like '';
# Time: 210521  7:34:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 338  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 338  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 339  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 339  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 342  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 342  Schema:   QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000366  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 343  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 343  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:34:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 346  Schema:   QC_hit: No
# Query_time: 0.002177  Lock_time: 0.002066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 346  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:34:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 347  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 347  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 350  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 350  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 351  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 351  Schema:   QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000434  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:35:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 354  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 354  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:35:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 355  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 355  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 358  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 358  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 359  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 359  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 362  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 362  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 363  Schema:   QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000299  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 363  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:35:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 366  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 366  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 367  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 367  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000061  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:35:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 370  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 370  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:35:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 371  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 371  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 374  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 374  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000248  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:36:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 375  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 375  Schema:   QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000511  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 378  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 378  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 379  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 379  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:36:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 382  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 382  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 383  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 383  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 386  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 386  Schema:   QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000575  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 387  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 387  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 390  Schema:   QC_hit: No
# Query_time: 0.006620  Lock_time: 0.006505  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 390  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 391  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 391  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:36:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 394  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 394  Schema:   QC_hit: No
# Query_time: 0.000096  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:36:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 399  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 399  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 402  Schema:   QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000580  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 402  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 403  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 403  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 406  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 406  Schema:   QC_hit: No
# Query_time: 0.000100  Lock_time: 0.000064  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 407  Schema:   QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 407  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 410  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 410  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000057  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 411  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 411  Schema:   QC_hit: No
# Query_time: 0.000098  Lock_time: 0.000062  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 414  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 414  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 415  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 415  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 418  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 418  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:37:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 419  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 419  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2021-05-21  7:37:48 7 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 210521  7:37:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 422  Schema:   QC_hit: No
# Query_time: 0.042163  Lock_time: 0.042033  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 422  Schema:   QC_hit: No
# Query_time: 0.036659  Lock_time: 0.036557  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 423  Schema:   QC_hit: No
# Query_time: 0.068445  Lock_time: 0.068361  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:37:52
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 423  Schema:   QC_hit: No
# Query_time: 0.059527  Lock_time: 0.059415  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582672;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2021-05-21  7:37:54 7 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2021-05-21  7:37:54 2 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2021-05-21  7:37:54 6 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2021-05-21  7:37:55 426 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2021-05-21  7:37:55 7 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 210521  7:38:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 428  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 428  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:38:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 429  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 429  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000267  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:38:06
# User@Host: sdnctl[sdnctl] @  [10.242.125.96]
# Thread_id: 431  Schema: sdnctl  QC_hit: No
# Query_time: 0.010122  Lock_time: 0.000612  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 548
use sdnctl;
SET timestamp=1621582686;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND (TABLE_NAME LIKE 'SVC_LOGIC') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: sdnctl[sdnctl] @  [10.242.125.96]
# Thread_id: 431  Schema: sdnctl  QC_hit: No
# Query_time: 0.002382  Lock_time: 0.000150  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 549
SET timestamp=1621582686;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND (TABLE_NAME LIKE 'NODE_TYPES') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# Time: 210521  7:38:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 433  Schema:   QC_hit: No
# Query_time: 0.001528  Lock_time: 0.001299  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 433  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:38:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 434  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 434  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:38:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 437  Schema:   QC_hit: No
# Query_time: 0.001942  Lock_time: 0.001896  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 437  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:38:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 438  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 438  Schema:   QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
2021-05-21  7:38:22 431 [Warning] Aborted connection 431 to db: 'sdnctl' user: 'sdnctl' host: '10.242.125.96' (Got an error reading communication packets)
# Time: 210521  7:38:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 441  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582710;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 441  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582710;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:38:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 442  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582711;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 442  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582711;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:38:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 445  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582720;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 445  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582720;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:38:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 446  Schema:   QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000519  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582721;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 446  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582721;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:38:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 449  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000234  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582730;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 449  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582730;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:38:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 450  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582731;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 450  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582731;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 458  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582740;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 458  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582740;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 459  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582741;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 459  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582741;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 463  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582750;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 463  Schema:   QC_hit: No
# Query_time: 0.000098  Lock_time: 0.000061  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582750;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 464  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582751;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 464  Schema:   QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582751;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:39:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 471  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582760;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 471  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582760;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 472  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582761;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 472  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582761;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 478  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582770;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 478  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582770;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:39:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 479  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582771;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 479  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582771;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:39:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 482  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582780;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 482  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582780;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:39:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 483  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582781;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 483  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582781;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:39:49
# User@Host: so_user[so_user] @  [10.242.125.100]
# Thread_id: 486  Schema: requestdb  QC_hit: No
# Query_time: 0.016812  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 92
use requestdb;
SET timestamp=1621582789;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 210521  7:39:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 490  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582790;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 490  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582790;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:39:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 491  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 491  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 494  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582800;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 494  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582800;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 495  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 495  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:04
# User@Host: so_user[so_user] @  [10.242.125.98]
# Thread_id: 497  Schema: requestdb  QC_hit: No
# Query_time: 0.001244  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 92
SET timestamp=1621582804;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 210521  7:40:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 502  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 502  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 503  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 503  Schema:   QC_hit: No
# Query_time: 0.000100  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 506  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 506  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 507  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 507  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 510  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 510  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 511  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 511  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 514  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 514  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 515  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 515  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:40:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 518  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 518  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:40:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 519  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 519  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 522  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 522  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:41:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 523  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 523  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 528  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 528  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 529  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 529  Schema:   QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000595  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 532  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 532  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 537  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 537  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 541  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 541  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:41:31
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 545  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 545  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 538  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000425  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:38.805309' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 549  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 549  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:39.096855' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 538  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:39.096886' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 549  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:39.114367' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:39.175466' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:39.175788' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 551  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 551  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582901;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:40.181488' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582901;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 552  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 552  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:41:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582902;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000664  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:41.177471' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582903;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:41:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582904;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:43.1787' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582905;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:41:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:45.177509' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:45.177615' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582907;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:46.176591' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582908;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:47.17664' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582908;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:41:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:48.175019' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582910;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582910;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582910;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:49.179692' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 555  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 555  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:41:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582911;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 556  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 556  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:41:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000629  Lock_time: 0.000474  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:51.174973' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001794  Lock_time: 0.001613  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582912;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582913;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001154  Lock_time: 0.001058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582913;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:52.17523' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582914;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:53.177986' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:54.174506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582916;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582917;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:56.176409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:57.175165' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:41:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582919;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:41:58.176699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001496  Lock_time: 0.001379  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582920;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 559  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 559  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582921;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582921;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 560  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 560  Schema:   QC_hit: No
# Query_time: 0.000102  Lock_time: 0.000064  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:01.176554' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582923;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:02.174844' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582924;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582924;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:03.175511' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582925;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:04.174934' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582925;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582926;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:05.175247' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582927;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582927;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582928;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:07.181131' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582929;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:08.175891' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582930;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:09.175209' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 563  Schema:   QC_hit: No
# Query_time: 0.001155  Lock_time: 0.001035  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 563  Schema:   QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000720  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 564  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 564  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000445  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:11.175896' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582933;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:12.175845' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582934;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582935;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:14.174659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582936;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582937;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582938;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582938;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:17.176534' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582939;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582939;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:18.177019' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000812  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582940;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:19.175078' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:19.175638' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 567  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 567  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582941;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582941;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 568  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 568  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:42:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582942;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:21.175298' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000922  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:21.175663' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582943;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000955  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582943;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:22.174942' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582944;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582945;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:24.175289' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582946;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:25.175055' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582946;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582947;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582947;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:26.17592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582948;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:28.175838' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582950;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 571  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 571  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:42:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582951;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 572  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 572  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000600  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582952;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:31.176937' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:32.176287' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582954;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582955;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:34.174509' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582956;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582956;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:35.175233' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:36.175318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000646  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582958;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:37.175509' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582959;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:38.174469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582960;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:39.175383' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582960;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:39.177439' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 575  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 575  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582961;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:40.175123' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000959  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582961;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 576  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 576  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:42:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582962;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:41.175087' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582963;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582963;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582964;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:42:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582965;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:44.176208' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582966;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:45.175123' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582967;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582967;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:46.174976' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:47.175558' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582969;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:48.175123' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:49.176479' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 579  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 579  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000061  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003515  Lock_time: 0.003373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582971;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 580  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 580  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:42:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582972;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000683  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:51.175705' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582973;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582973;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:52.174611' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582974;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:53.175354' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:54.175301' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582976;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000952  Lock_time: 0.000830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582977;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:56.17404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582978;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:42:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582979;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:58.17491' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582980;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:42:59.176164' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 583  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 583  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:43:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582981;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 584  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 584  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582982;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582983;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582983;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582984;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582985;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:04.17498' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:04.176267' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582986;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582986;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582987;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:06.175115' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582988;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:07.174883' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001257  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582988;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001252  Lock_time: 0.001101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582989;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000753  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582990;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:09.175897' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 587  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 587  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:43:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:10.174813' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 588  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621582991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 588  Schema:   QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621582991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582992;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582992;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:11.175083' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:12.175659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:13.175079' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582994;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:13.175004' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000540  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582995;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:14.176024' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000482  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582995;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:14.176467' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582996;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582996;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:15.175016' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000610  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582997;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:16.176959' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582998;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000569  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582998;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:17.176089' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621582999;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:19.174259' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 591  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 591  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583001;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 592  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 592  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000226  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583002;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:21.17744' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583003;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:22.17462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583003;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583004;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583005;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583005;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:24.175998' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583006;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:25.17574' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583007;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:26.17444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000765  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:27.175076' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001186  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583009;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000534  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583009;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:28.174935' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000745  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583010;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:29.175103' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 595  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 595  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583011;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 596  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 596  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:43:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:31.174647' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:31.174919' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583013;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:32.17496' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001096  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583013;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583014;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:33.175519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583015;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001339  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583015;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:35.17459' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583016;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:35.175003' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583017;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000645  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:36.174888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583018;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:37.173922' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583019;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:38.174541' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583020;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:39.174774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583020;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:39.179522' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 599  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 599  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583021;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000522  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 600  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 600  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:42.177027' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583024;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:43.175402' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583024;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000509  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:44.174643' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000740  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583026;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583027;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:46.175251' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583028;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583028;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:47.175241' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:48.174836' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000520  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583029;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583030;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 603  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 603  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583031;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:50.175249' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 604  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 604  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:43:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583032;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:51.174535' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:52.175386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:53.174744' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.001110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583035;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:54.174563' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:54.175688' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583036;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583036;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:43:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:56.175034' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583038;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:57.174897' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:43:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583039;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:58.174951' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001779  Lock_time: 0.001649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583039;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583040;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583040;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:43:59.175467' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 607  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 607  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583041;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000913  Lock_time: 0.000808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583041;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:00.174184' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 614  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 614  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583042;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:01.174765' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583043;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:02.174805' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.153.164]
# Thread_id: 611  Schema: requestdb  QC_hit: No
# Query_time: 0.001955  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 92
use requestdb;
SET timestamp=1621583043;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 210521  7:44:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621583044;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000332  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:03.175043' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583045;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583046;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:05.174539' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.153.164]
# Thread_id: 608  Schema: catalogdb  QC_hit: No
# Query_time: 0.001510  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 92
use catalogdb;
SET timestamp=1621583046;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 210521  7:44:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001334  Lock_time: 0.001146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621583047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001031  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583048;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583048;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:07.175481' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583049;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:08.17499' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:08.175244' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583050;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:09.174841' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 617  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 617  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583051;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 618  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 618  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583052;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583053;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583053;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:12.177631' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:13.175536' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583054;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583055;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:14.174739' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583056;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001037  Lock_time: 0.000694  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583057;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:16.176243' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583058;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:17.174712' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583058;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:17.174411' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583059;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583059;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:18.176079' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583060;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:19.175524' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 621  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 621  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583061;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000875  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583061;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 624  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 624  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:44:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000041  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583062;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:21.174752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583063;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:22.174783' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583063;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583064;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583065;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:24.17478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583065;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:24.175144' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000347  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583066;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583066;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:25.17503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:26.174114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583067;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:26.177489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583068;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:27.174903' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583069;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:28.174356' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583070;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:29.174316' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 627  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 627  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583071;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:30.17441' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 628  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 628  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583072;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:31.174517' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583073;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583073;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:32.175067' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583074;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:33.175515' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002183  Lock_time: 0.002030  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:34.174736' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002307  Lock_time: 0.002155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583075;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583076;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583076;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:35.174958' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583077;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:36.175294' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:37.175121' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000461  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583078;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001068  Lock_time: 0.000812  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:38.177597' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583080;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583080;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:39.175404' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 631  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 631  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:44:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583081;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:40.174909' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 632  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 632  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:41.174839' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583082;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:42.174873' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583083;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:42.174943' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000867  Lock_time: 0.000702  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583084;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001227  Lock_time: 0.000738  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583084;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583085;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:44.174698' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583085;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:45.177286' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583086;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:45.17708' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:46.174074' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583088;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:47.174608' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583089;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583089;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:48.174641' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:49.175116' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583090;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:49.175116' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 638  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 638  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:44:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.015847  Lock_time: 0.015647  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:50.175277' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.016604  Lock_time: 0.016231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583091;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 639  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 639  Schema:   QC_hit: No
# Query_time: 0.027006  Lock_time: 0.026942  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:44:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001015  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583092;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001830  Lock_time: 0.001250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:52.174738' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583094;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583094;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583095;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:54.175797' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:54.176001' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:55.17556' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000720  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583096;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:44:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583097;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583097;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:56.175055' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:57.175222' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:44:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:58.175337' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583099;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:58.175176' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000506  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583100;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:44:59.17502' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001340  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 642  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 642  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:45:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583101;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:00.175052' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 643  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 643  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:45:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583102;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:01.175001' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583103;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:02.174922' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:03.175152' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583105;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:04.175626' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:04.175316' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583105;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000907  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583106;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000768  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583106;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000988  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583107;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:06.17498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:07.175174' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583108;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583109;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583109;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:08.174405' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583110;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583110;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:09.174275' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 646  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 646  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583111;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:10.174674' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 647  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 647  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:45:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583112;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583112;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583113;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001323  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583114;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583114;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:13.174306' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583115;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:14.174685' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583116;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001217  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:16.174462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001171  Lock_time: 0.000971  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583117;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:16.174373' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583118;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004462  Lock_time: 0.004312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583118;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:17.174821' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583119;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:18.174945' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583119;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583120;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000647  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:19.175412' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 650  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 650  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583121;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000891  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583121;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:20.175294' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 651  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 651  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583122;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583122;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:21.174538' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583123;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:22.17531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583124;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:23.17499' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000345  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:23.174731' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583125;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583125;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:24.17506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583126;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:25.176037' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:25.176298' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000770  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583127;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:26.176268' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001341  Lock_time: 0.001178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:27.175271' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583129;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583129;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583130;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583130;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:29.177553' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 654  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 654  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:45:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583131;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000428  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:30.178433' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 655  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 655  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583132;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583132;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:31.174394' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583133;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002097  Lock_time: 0.001916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:33.174124' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583134;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:33.177473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583135;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001012  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583135;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:34.174304' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583135;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:34.177796' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583136;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:35.174654' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000422  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:36.174662' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:36.175068' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583138;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:37.174764' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:37.175471' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583139;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:38.175339' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583140;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001356  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583140;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 658  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 658  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583141;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 659  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 659  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000226  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583142;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583143;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583143;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:42.174855' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583144;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:43.175449' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000648  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583145;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:44.175175' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:44.174681' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583146;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583146;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583147;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:47.175986' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000572  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583149;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583149;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:48.175395' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583150;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.000755  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583150;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 662  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 662  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001135  Lock_time: 0.000868  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583151;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 666  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 666  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:45:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001644  Lock_time: 0.001450  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001057  Lock_time: 0.000390  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583152;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001264  Lock_time: 0.001157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583153;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:52.174539' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000662  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583154;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000411  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583154;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:45:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583155;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:54.174127' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583156;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583156;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:55.174945' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:56.17466' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583158;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:57.175194' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:45:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583159;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:45:58.1746' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001110  Lock_time: 0.000998  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583159;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.001034  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583160;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 669  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 669  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583161;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:00.174497' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583161;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 670  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 670  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583162;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583162;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:01.174998' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583163;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:02.174168' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583164;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:03.174066' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001083  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583165;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:04.17463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:05.174418' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583166;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583167;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:06.174953' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583168;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:07.174664' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583169;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:08.174632' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001253  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583169;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000565  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583170;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 673  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 673  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000867  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583171;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:10.175179' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 674  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000254  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 674  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583172;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583172;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:11.173864' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:12.17394' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583173;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:12.177973' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583174;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583175;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583176;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:15.175001' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583177;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583178;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:17.17485' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583179;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:18.174892' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583180;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:19.174803' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000988  Lock_time: 0.000864  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583180;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 677  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 677  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:46:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583181;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001024  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583181;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 678  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 678  Schema:   QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:46:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583182;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:21.177334' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583183;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583183;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583184;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000488  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583185;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583186;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583187;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:26.175598' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583188;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583189;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583190;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:29.174496' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 681  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 681  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583191;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:30.174899' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 682  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 682  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:31.175349' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583192;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:31.174755' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583193;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:32.175078' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583194;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:33.175941' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583194;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:33.175088' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583195;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:34.174661' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001361  Lock_time: 0.000862  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583195;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:35.175891' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583197;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:36.178749' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583198;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583199;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:38.175543' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:39.175236' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 685  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 685  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000493  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583201;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583201;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:40.174198' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 686  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 686  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:46:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:41.175246' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583203;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:42.174058' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:42.177885' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000468  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583204;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:44.174897' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583206;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583207;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:46.175307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583208;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:47.174399' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000517  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583208;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583209;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583210;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:49.174792' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 689  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 689  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:46:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:50.175048' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 690  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 690  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:46:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583212;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:51.175058' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583212;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001319  Lock_time: 0.001094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583213;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:52.174859' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002252  Lock_time: 0.001499  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583213;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583214;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:46:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:54.174202' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:55.175671' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583217;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001005  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583218;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583218;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:57.178481' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:46:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583219;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583219;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:46:58.174722' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001963  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583220;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 693  Schema:   QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000343  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 693  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583221;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583221;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 694  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 694  Schema:   QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583222;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583222;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:01.174346' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583223;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:02.174321' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583224;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:03.174875' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583226;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583226;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:05.175374' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:06.17514' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583227;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:06.175184' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583228;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:07.174326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583229;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583229;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:08.174984' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583230;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:09.175489' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 697  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 697  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000656  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583231;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 698  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 698  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583232;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:11.176863' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583233;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583233;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:12.175519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583234;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000671  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583234;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:13.177159' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583235;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583235;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:14.175427' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583236;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583237;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:16.175163' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583237;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:16.176372' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583238;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:17.17398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583239;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583240;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 701  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 701  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000906  Lock_time: 0.000685  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:20.173936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:20.177472' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 702  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 702  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583242;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000652  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583242;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:21.174556' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:22.1756' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583243;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:22.175886' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583244;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000679  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583244;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583245;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:24.175012' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583246;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583246;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583247;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583247;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000382  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583249;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:28.181853' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583250;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583250;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:29.174622' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 705  Schema:   QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 705  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583251;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:30.175035' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 706  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 706  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583253;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583254;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583254;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:33.175078' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.001070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583255;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:34.177351' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583256;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:35.174388' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000719  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:36.174269' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583258;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000831  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583258;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:37.174386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000585  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:38.175245' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:38.175493' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583260;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583260;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:39.174327' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 709  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 709  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583261;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583261;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:40.174728' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 710  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 710  Schema:   QC_hit: No
# Query_time: 0.000107  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:41.174892' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583263;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:42.175386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000559  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583264;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000527  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583264;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583265;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:44.174927' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583266;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583266;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000364  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583267;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:46.175293' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583268;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583269;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:49.175751' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 713  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 713  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:47:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:50.175113' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000873  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:50.175057' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 714  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 714  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:47:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583272;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:51.175015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583273;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:53.175682' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583274;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:53.175354' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002214  Lock_time: 0.002076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002302  Lock_time: 0.001871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583275;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:47:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583276;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583276;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:55.175933' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:56.175164' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583278;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583278;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:57.17441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:47:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583279;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:58.17455' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583280;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583280;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:47:59.17448' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 717  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 717  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583281;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:00.175172' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 718  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 718  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000235  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:48:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583282;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583282;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583283;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:02.174818' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583284;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583284;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:03.174302' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583285;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:04.17454' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583286;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:05.176386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002731  Lock_time: 0.002355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583287;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583287;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:06.174342' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583288;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583288;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583289;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:08.176011' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583290;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:09.175543' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 721  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 721  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 722  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 722  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583292;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:11.174752' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583292;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:11.174738' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000484  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:12.174462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001545  Lock_time: 0.000875  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583293;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583294;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:13.174751' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583295;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:15.178923' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583297;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583298;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583299;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:18.174394' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583299;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:18.174609' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583300;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 725  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 725  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583301;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583301;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:20.174975' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 726  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 726  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583302;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:21.174692' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583302;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001296  Lock_time: 0.000948  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583303;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001159  Lock_time: 0.001015  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:23.174736' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001562  Lock_time: 0.001464  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583304;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000728  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583305;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:24.175068' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583305;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:24.174915' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583306;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583306;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:26.174747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583308;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583309;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:28.174825' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583309;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583310;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:29.174263' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 729  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 729  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:48:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004842  Lock_time: 0.004583  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:30.174508' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005606  Lock_time: 0.005100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583311;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 730  Schema:   QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 730  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001204  Lock_time: 0.001081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:31.175104' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.001013  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:32.17506' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001685  Lock_time: 0.001288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583313;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000420  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583314;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:33.175587' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000652  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583314;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:33.175469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:34.17455' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583315;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:34.174307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583316;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:35.17469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583317;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583317;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:36.175001' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583318;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583319;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000851  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583319;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583320;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:39.175242' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:39.17575' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 733  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 733  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:48:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583321;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:40.175254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583321;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:40.17544' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 734  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 734  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:48:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583322;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000585  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583322;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:41.174792' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000402  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583323;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583324;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:43.175348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583325;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:44.174726' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583326;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583327;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000864  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583327;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:46.175976' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583328;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583328;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:47.176206' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:48.174671' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583329;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:48.175763' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583330;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583330;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 737  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 737  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:48:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583331;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:50.174354' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583331;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:50.17543' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 738  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 738  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:48:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000460  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583332;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583332;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000532  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:52.175678' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583333;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:52.175077' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583334;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000593  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583334;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583335;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:54.175747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583336;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:55.17455' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583336;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:48:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583337;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:56.175426' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:57.175134' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000529  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583338;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:57.17435' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:48:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583339;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:48:58.175626' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000924  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583340;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 741  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 741  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583341;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:00.176583' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583341;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:00.176106' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 742  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 742  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:49:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583342;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583342;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:01.175774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583343;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583344;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583345;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583346;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583346;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:05.176727' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001337  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583347;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583348;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:07.17797' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583349;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583349;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:08.177151' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583350;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:09.174897' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 745  Schema:   QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000414  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 745  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:10.174381' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583351;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:10.174893' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 746  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 746  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:11.175087' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583352;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:12.174675' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000729  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583354;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001162  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583354;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:14.178277' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583356;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:15.176517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583356;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583357;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:16.177456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583358;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:17.174793' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001172  Lock_time: 0.000685  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583359;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583360;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:19.175182' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 749  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 749  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:20.175857' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 750  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 750  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:49:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583362;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:21.173988' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583363;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:22.174049' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583364;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:23.174709' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:24.174742' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583366;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:25.17514' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000415  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583367;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583367;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:26.175015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583368;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:28.174813' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:29.175004' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 753  Schema:   QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000567  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 753  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583371;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001879  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583371;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 754  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 754  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:49:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:31.174636' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583372;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583373;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583373;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:32.174336' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583374;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:33.174398' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:33.174799' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583375;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:34.174777' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583375;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583376;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583376;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:35.174878' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583377;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:36.175539' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583378;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001272  Lock_time: 0.001099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583378;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:37.174165' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583379;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583379;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583380;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:39.174675' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583380;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 757  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 757  Schema:   QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000572  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583381;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583381;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:40.175233' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 758  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 758  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000498  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:41.17417' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583382;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583383;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:43.175616' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583385;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000745  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583386;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001311  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583386;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001309  Lock_time: 0.001089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583387;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:46.174958' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000566  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583388;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:47.17514' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001463  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583388;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:49:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583389;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:48.174999' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583389;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:48.174821' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583390;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583390;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:49.175032' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 761  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 761  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:49:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583391;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:50.174382' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 762  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 762  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:49:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583392;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:51.174926' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583393;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583393;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:52.177429' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583395;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:54.174225' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583395;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:54.174575' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583396;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583396;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:55.17485' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583397;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:56.175331' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583398;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583398;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583398;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:57.177901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:49:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583399;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583399;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583400;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583400;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:49:59.175151' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 765  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 765  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583401;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 766  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 766  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:50:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:01.175412' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583403;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583404;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:03.174681' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583405;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583406;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583406;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:05.177318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583407;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:07.174729' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000583  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583409;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583409;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:08.174388' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000625  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583410;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583410;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:09.174585' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 769  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 769  Schema:   QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583411;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:10.174952' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 770  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 770  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:50:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583412;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583413;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:12.174475' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583414;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:13.174972' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583414;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:13.17465' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583415;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001426  Lock_time: 0.001077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583416;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583416;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:15.177592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583417;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583417;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:16.174626' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:17.174745' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583418;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:17.174736' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583419;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:19.175314' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 773  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 773  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:50:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001057  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:20.174023' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 777  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 777  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:50:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583422;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:21.17475' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:22.175128' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583423;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583424;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583424;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:23.177314' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001098  Lock_time: 0.000874  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:24.174164' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001572  Lock_time: 0.001451  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583425;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000988  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:25.174507' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583427;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583427;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583428;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:27.174834' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583429;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583430;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583430;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 780  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 780  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000323  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583431;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 781  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 781  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583432;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583434;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:33.17588' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583435;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583435;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001281  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583436;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583437;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:36.174717' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583438;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583438;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:37.177552' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583439;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:38.174071' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583439;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:38.177483' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583440;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583440;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 784  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 784  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:50:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583441;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:40.174911' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:40.174585' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 785  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 785  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583442;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583442;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583443;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583444;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:43.175381' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000927  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583445;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583446;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583447;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583449;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:48.174745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583450;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:49.175202' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 788  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 788  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583451;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:50.174527' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 789  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 789  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:50:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583452;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:51.174771' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583453;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583453;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:52.174739' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583454;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583454;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:50:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:54.174723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583456;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:55.175145' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000951  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:55.175183' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583457;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000417  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:56.174642' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583458;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:57.175984' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:50:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583459;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:50:59.175314' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583460;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 792  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 792  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583461;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583461;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 793  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 793  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583462;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:01.174822' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583462;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583463;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:02.17499' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583464;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583465;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:04.174928' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:04.174826' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583466;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:05.174698' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:05.174693' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583467;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583467;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:06.174719' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583468;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001113  Lock_time: 0.000712  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583469;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583470;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 796  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 796  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:51:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583471;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583471;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:10.175394' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 797  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 797  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583472;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583472;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:11.174795' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583473;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:12.175488' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000508  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583474;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000915  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:14.175074' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583476;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000703  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:15.17513' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:16.17487' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583478;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583479;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000660  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583479;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:19.174902' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 800  Schema:   QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 800  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:51:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583481;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000476  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583481;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:20.174986' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 801  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 801  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583483;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:22.175204' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583484;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583484;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:23.174203' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000625  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:24.174969' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583486;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:25.175244' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001346  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:26.17483' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000499  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583487;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:26.175559' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583488;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000642  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:27.174345' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:28.175197' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583490;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583490;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 804  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 804  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:51:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583491;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 805  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 805  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583492;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:31.174791' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:31.175709' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583493;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000822  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583493;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:32.174125' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583494;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583495;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583495;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:35.174902' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583497;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583497;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583498;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:37.174032' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:38.174413' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583500;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583500;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 808  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 808  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 809  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 809  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:51:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583502;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:42.174414' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583503;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:42.174658' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583504;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:43.175842' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583505;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001035  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:45.175986' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583507;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583507;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:47.17562' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583509;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583510;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:49.17511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583510;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:49.174951' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 812  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 812  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583511;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583511;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 813  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 813  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:51:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583512;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583512;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:51.174485' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:52.175002' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583513;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:52.174731' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583514;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583514;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:53.174914' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000774  Lock_time: 0.000531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583515;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001387  Lock_time: 0.000846  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583515;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:51:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583516;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:55.175745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583517;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583517;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:56.17488' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583518;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:57.176072' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:51:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583519;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000402  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583519;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:59.175397' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:51:59.175279' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 816  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 816  Schema:   QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:52:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583521;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 817  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 817  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583522;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:01.175114' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583523;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583523;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:02.174897' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000906  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583524;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583524;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:03.174463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583525;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000571  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:05.175056' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583527;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000945  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583527;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:06.174972' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583528;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:07.178103' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583529;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583529;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:08.174542' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583530;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:09.174487' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 820  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 820  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:52:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583531;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:10.174763' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 821  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 821  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:52:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583532;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:11.174839' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583533;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:12.174023' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583534;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:13.174185' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:14.174398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583536;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:15.174655' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583536;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583537;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583537;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:16.174914' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583538;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000522  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:18.175172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583540;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583540;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:19.17452' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 824  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 824  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583541;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 825  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 825  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583542;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:21.175053' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583543;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:22.175505' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:23.174365' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583544;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583545;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583545;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583546;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583547;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:26.174978' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583547;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:26.175844' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583548;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000389  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:27.174589' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000983  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:28.175387' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000599  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583549;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:28.1752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583550;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583550;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 828  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 828  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:30.174752' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583551;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:30.174815' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 829  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 829  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583552;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583552;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:31.174643' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583553;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:32.175453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583554;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583554;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:33.174867' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583555;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583556;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:35.175284' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583557;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:37.175812' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004361  Lock_time: 0.004056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583559;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:39.177408' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 832  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 832  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 833  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 833  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583562;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:41.17392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:42.174257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:42.1749' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583564;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:43.175091' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583565;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583565;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:44.174225' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:45.17648' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583567;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583567;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:47.174888' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583568;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:47.174918' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001988  Lock_time: 0.001830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583569;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002218  Lock_time: 0.001839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583569;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:49.175387' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 836  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 836  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583571;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583571;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:50.177361' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 837  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 837  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:52:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583572;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:51.174712' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583573;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583574;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:53.174405' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583575;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:54.17428' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583575;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:55.174781' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001069  Lock_time: 0.000934  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001249  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583577;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:52:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583578;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:52:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583579;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:58.175081' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583580;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000504  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583580;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:52:59.175925' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 840  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 840  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583581;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:00.174913' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 841  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 841  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000243  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583582;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:01.174185' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001228  Lock_time: 0.001115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:02.174403' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583584;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:03.174847' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583585;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001093  Lock_time: 0.000977  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583585;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:04.175297' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583586;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583587;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:06.175769' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:06.176185' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:07.174679' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583588;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:07.174847' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583589;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583589;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:09.174791' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 844  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 844  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583591;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:10.17507' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000581  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 845  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 845  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:53:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583592;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:11.174397' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583592;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:11.174195' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:12.174453' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583593;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:12.174366' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583594;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:13.174111' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583594;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:13.178385' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583595;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:14.174563' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583596;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583597;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:16.174089' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001180  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583597;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583597;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:16.17757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583598;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583598;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:17.174348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001300  Lock_time: 0.001070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583599;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:18.174448' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:19.17458' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001561  Lock_time: 0.001225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583600;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 848  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 848  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583601;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:20.174549' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 849  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 849  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:53:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583602;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:21.175382' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583603;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583603;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:22.174068' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000667  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:23.173978' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583605;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583606;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:25.174498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583607;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:26.174423' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:27.174432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001716  Lock_time: 0.001252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583609;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:29.174041' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 852  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 852  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:53:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583611;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 853  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 853  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:31.17434' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583613;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:32.177279' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583614;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583615;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583616;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583616;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:35.17472' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:36.17437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583618;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583618;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:37.174376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583619;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583619;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:39.174721' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 856  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 856  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:40.174727' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583621;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:40.174862' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 857  Schema:   QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 857  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583622;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001337  Lock_time: 0.000689  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583622;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583623;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:42.175015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583624;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:43.174168' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583625;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:44.175085' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583626;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:45.178184' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000916  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583627;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:46.174409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583628;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:47.174322' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583629;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583629;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:48.174287' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583630;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:49.174323' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 860  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 860  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001754  Lock_time: 0.000883  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583631;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 861  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 861  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:53:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583632;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583633;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583634;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:54.174101' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:54.174354' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583636;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:55.174112' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:55.177531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000968  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583637;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001194  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583637;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:53:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583638;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:57.174406' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:53:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000702  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583639;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583639;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:58.174984' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:59.174927' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000700  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:53:59.175068' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 864  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 864  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583641;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:00.174948' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 865  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 865  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583642;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583643;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:02.174804' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583644;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:03.175285' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000864  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583645;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:04.174066' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:05.17616' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583646;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:05.176012' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583647;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583647;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583648;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000394  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:07.17459' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583649;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583649;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:08.175328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583650;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583650;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:09.174838' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 868  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 868  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:54:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583651;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583651;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:10.1751' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 869  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 869  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000479  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583652;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583652;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:11.175139' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:12.175087' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583654;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000342  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583654;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:13.174841' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000729  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583655;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000724  Lock_time: 0.000606  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:14.174952' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000818  Lock_time: 0.000580  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:15.174378' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000542  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:15.174703' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583657;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583657;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:18.174865' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583659;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583660;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 872  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 872  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583661;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:20.174481' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 873  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 873  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:54:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583662;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:21.175117' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000775  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:22.174545' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583663;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:22.174362' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:23.173964' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583665;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583666;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:25.174936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000638  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583667;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000524  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583667;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583668;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:27.174372' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583669;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:28.176521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583670;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:29.174783' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 876  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 876  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583671;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:30.175228' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 877  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 877  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583671;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583672;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:31.175698' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583673;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:32.174906' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583673;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:32.175194' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583674;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:33.174965' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583675;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001905  Lock_time: 0.001751  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583675;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:34.174052' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000630  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583676;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:35.174187' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001182  Lock_time: 0.001078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583677;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:36.174367' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583678;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583679;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583680;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:39.174063' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 880  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 880  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:54:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000374  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583681;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:40.173848' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001837  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583681;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 881  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 881  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001524  Lock_time: 0.001406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583682;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:41.173852' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583683;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583684;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:43.174931' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:43.174502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583685;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000954  Lock_time: 0.000482  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583685;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000466  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:45.174606' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583687;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:46.175438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583688;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583689;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:48.175495' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583690;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:49.174433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583690;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:49.174873' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 884  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 884  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:54:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583691;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:50.17519' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 887  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 887  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:54:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583692;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:51.17773' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583693;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003185  Lock_time: 0.003051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583693;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:52.174609' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583694;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:53.174104' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583695;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:54.174695' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583696;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583696;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:54:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583697;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:56.174301' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583698;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:57.174696' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:54:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001447  Lock_time: 0.000986  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583699;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583699;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:58.175006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000745  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583700;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:59.174044' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:54:59.177182' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 890  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 890  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:55:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583701;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.000906  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583701;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:00.174451' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 891  Schema:   QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000332  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 891  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583702;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583703;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:02.174907' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583704;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:03.174988' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:04.175697' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583706;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583707;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583708;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583708;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:07.174813' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583709;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:08.174915' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583709;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:08.175041' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:09.174992' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583710;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:09.175161' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 894  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583710;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 894  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583710;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000549  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583711;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583711;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 895  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583711;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 895  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583711;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:55:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583713;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583714;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583715;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:14.17442' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583716;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583716;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583717;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:16.176521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583718;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583718;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:18.175423' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583720;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:19.174174' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 898  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583720;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 898  Schema:   QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000287  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583720;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001649  Lock_time: 0.001004  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583721;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583721;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:20.177468' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 899  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583721;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 899  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583721;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583722;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583722;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:21.174097' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583723;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583723;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:22.174035' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583723;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:22.177318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583724;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:24.174659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:25.175198' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000575  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583727;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000581  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583727;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583728;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:27.174773' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583729;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:28.176777' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000712  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583730;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:29.174923' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000867  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583730;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:29.175423' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 902  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583730;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 902  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583730;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583731;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583731;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 903  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583731;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 903  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583731;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583733;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583733;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:32.175405' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583734;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583735;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583737;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583737;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:36.177705' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583738;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:37.174414' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583739;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583739;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:38.174038' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583739;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:38.177457' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583740;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583740;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:39.174366' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 906  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583740;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 906  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583740;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:55:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583741;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 907  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583741;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 907  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583741;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:55:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583742;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:41.175036' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583743;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:42.174783' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583744;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583745;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:44.174221' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:45.174634' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583747;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:46.174979' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583749;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:48.174799' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583750;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 910  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583750;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 910  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583750;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583751;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:50.177355' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 911  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583751;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 911  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583751;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:55:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000532  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583752;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:55:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001107  Lock_time: 0.000941  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583753;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:52.174439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000849  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583753;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:52.174186' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:53.175409' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000809  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583754;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583755;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:54.173944' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:55.174675' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583756;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:55.17478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000682  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583757;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:56.174383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001956  Lock_time: 0.001794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583758;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:57.175082' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001944  Lock_time: 0.001800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583758;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:57.174827' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:55:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001480  Lock_time: 0.001375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:55:58.175189' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583760;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 914  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583760;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 914  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583760;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583761;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:00.174526' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 915  Schema:   QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000352  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583761;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 915  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583761;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:56:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583762;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:01.174503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:02.174518' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:02.174712' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:03.174543' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001318  Lock_time: 0.001187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583765;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:04.174291' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583765;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:04.174372' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583766;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583766;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:05.17737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583767;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583767;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:06.177702' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583768;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583768;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:07.174626' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583769;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:08.174372' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583769;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:08.17435' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583770;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 918  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583770;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 918  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583770;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583771;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:10.174199' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 919  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583771;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 919  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583771;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583772;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:11.174503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583773;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583774;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583774;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583775;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001159  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583776;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583777;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:16.174684' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583778;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583778;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:17.174469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583779;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:18.174887' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583779;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:18.174631' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:19.174808' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 922  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583780;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 922  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583780;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583781;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 923  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583781;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 923  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583781;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583782;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:21.174038' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:21.177376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583783;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:22.175085' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583783;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:23.174814' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583784;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:25.174873' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583787;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:26.175653' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:26.175496' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583788;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001234  Lock_time: 0.000914  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:27.174862' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583789;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583790;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:29.175339' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 926  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583790;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 926  Schema:   QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000318  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583790;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:56:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002147  Lock_time: 0.001904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583791;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:30.174995' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002306  Lock_time: 0.002102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:30.17502' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 927  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 927  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000596  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583792;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:31.175542' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583793;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000347  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:32.174809' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583794;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:33.174858' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000633  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:34.17438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000929  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583796;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583796;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:35.175182' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583797;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000867  Lock_time: 0.000683  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583797;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:36.174988' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583798;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583798;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:37.174342' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583799;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:38.174947' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:39.174109' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 930  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583800;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 930  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583800;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:56:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583801;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:40.174002' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 931  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 931  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:56:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583802;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:41.175573' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583803;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:42.174097' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583803;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583804;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583804;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:43.174993' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:44.177485' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583806;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:45.175364' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583808;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583808;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:47.17526' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583809;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:48.175227' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583809;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583810;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583810;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:49.17545' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 934  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 934  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583811;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583811;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:50.174812' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 935  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 935  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:56:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583812;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:51.175003' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583813;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583814;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:53.175119' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001808  Lock_time: 0.001639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583815;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000982  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583815;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:54.174309' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583816;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:55.174551' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583817;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:56.174521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:56:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583818;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:56:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583819;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:56:58.174925' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001412  Lock_time: 0.000939  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583820;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 938  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 938  Schema:   QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583821;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:00.174326' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 939  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 939  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000887  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583822;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583822;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:01.17503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:02.174535' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583824;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583825;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583826;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583827;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:06.174102' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583828;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:07.174016' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:07.177589' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583829;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583829;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583830;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:09.175105' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 942  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 942  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 943  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 943  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:11.174823' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583832;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:11.175039' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:12.174936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:13.175113' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583835;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583835;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:14.174874' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583836;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583836;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:15.17479' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583837;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:16.174688' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583838;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583838;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001191  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583839;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000584  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:18.17551' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:19.17421' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 946  Schema:   QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000430  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 946  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583841;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:20.174381' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 947  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 947  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583842;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583842;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:21.174227' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583842;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:21.177366' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583843;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:22.175238' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:22.175069' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583844;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001297  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583844;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583847;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:26.174885' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583848;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:28.174733' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583850;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:29.174545' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 950  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 950  Schema:   QC_hit: No
# Query_time: 0.002182  Lock_time: 0.002065  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583851;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:30.175179' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 951  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 951  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583852;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000308  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583852;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583853;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:32.174047' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583853;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:32.177346' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583854;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583855;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:34.175158' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:34.174971' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583856;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000495  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583856;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:35.174165' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583856;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:35.177652' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583857;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000554  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583857;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:36.174485' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583858;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:37.174803' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583859;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:38.174561' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583860;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:39.174811' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 954  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 954  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583861;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:40.17478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583861;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:40.174594' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 955  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 955  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583862;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:41.174665' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583863;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583864;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:43.174774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583864;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:44.174839' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583866;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:45.175327' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583866;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:46.174092' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583868;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000947  Lock_time: 0.000563  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583869;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:48.174456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583870;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:49.174901' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 958  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 958  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:57:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583871;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 959  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 959  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:57:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583872;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583873;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583874;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:53.17633' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:54.174547' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000694  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583876;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:57:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:56.175019' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583878;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:57.174603' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:57:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000549  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583879;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:58.174729' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000702  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583879;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:58.17481' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583880;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583880;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:57:59.174637' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 962  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 962  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:58:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:00.174956' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583881;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:00.17487' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 963  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 963  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:58:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583882;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583882;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:01.174736' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:02.175078' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583884;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583884;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583884;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:03.177348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583885;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000988  Lock_time: 0.000501  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583885;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583886;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:05.174692' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583887;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583888;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:07.174222' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583889;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:08.174754' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:08.174386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583890;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583890;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 966  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 966  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:58:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583891;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:10.174858' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583891;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:10.174834' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 967  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 967  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000913  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583892;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001518  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583892;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583893;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000592  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:12.174458' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583894;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:13.174286' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583895;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:14.173936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583896;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:15.175503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583897;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583897;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:16.174073' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:16.177429' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001072  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:17.174115' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002335  Lock_time: 0.001455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583898;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:18.174126' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583900;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:19.174998' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 970  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000243  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 970  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:58:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583901;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:20.175016' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 971  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 971  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:58:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583902;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:21.174649' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:22.174549' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583904;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583904;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:23.174757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001807  Lock_time: 0.001583  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583905;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583905;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:24.175139' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583906;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:25.175033' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583907;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:26.174606' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583908;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583908;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:28.174715' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583910;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 974  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 974  Schema:   QC_hit: No
# Query_time: 0.000099  Lock_time: 0.000058  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583911;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:30.175102' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583911;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:30.174931' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 975  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 975  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583912;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:31.174666' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001064  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583913;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:32.174319' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:32.174563' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583914;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:34.175651' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:34.175402' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583916;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000638  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583916;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583917;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:36.182782' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:37.174433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:37.174209' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583919;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:38.17406' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:38.177413' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583920;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583920;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:39.174046' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 978  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 978  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583921;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:40.174564' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 979  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 979  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000848  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:41.174172' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001276  Lock_time: 0.000976  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:41.174295' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583923;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583923;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583924;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:43.175061' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583925;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583925;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583926;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583926;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:45.175416' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583927;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:46.175469' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:46.175506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583928;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583928;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583929;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:48.174391' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583930;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583930;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:49.173978' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:49.177317' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 982  Schema:   QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 982  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583931;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 983  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 983  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:58:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583932;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:51.174325' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583933;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:52.175194' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:52.175037' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583934;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583934;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:53.177499' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583935;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583935;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:54.174093' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583935;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:54.177706' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001217  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583936;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583936;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:55.174947' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:56.174115' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001273  Lock_time: 0.000829  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583937;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:58:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:57.175342' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583938;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:57.17635' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:58:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583939;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583939;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:58.174385' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583940;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:58:59.174552' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 986  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 986  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:59:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583941;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 987  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 987  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583942;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:01.174731' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583943;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583944;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001145  Lock_time: 0.000710  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583944;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000621  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583946;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:05.17374' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583947;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:06.175398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:07.17476' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000921  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583948;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583949;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583950;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583950;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 990  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 990  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:59:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:10.175324' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 991  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 991  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583952;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:12.174584' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001056  Lock_time: 0.000895  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583954;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001251  Lock_time: 0.000751  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583954;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583957;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:16.175618' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583958;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583959;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583960;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583960;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 994  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 994  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:20.174543' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 995  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 995  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:59:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583962;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005183  Lock_time: 0.005051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:21.174764' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:22.174789' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583964;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583964;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:23.174888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583965;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583965;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:25.174149' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583967;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:26.174977' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000652  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583968;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:27.175399' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:28.174062' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:29.177205' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:29.176825' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 998  Schema:   QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000280  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 998  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583971;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583971;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:30.174557' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 999  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 999  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:31.174498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583973;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:34.174413' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583976;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:35.174105' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583977;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:36.174377' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583978;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:38.1772' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000924  Lock_time: 0.000715  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583980;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1002  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1002  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583981;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:40.175071' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1003  Schema:   QC_hit: No
# Query_time: 0.001463  Lock_time: 0.001404  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1003  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  7:59:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583982;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:41.174834' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001238  Lock_time: 0.000637  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583982;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000522  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583983;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583984;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583985;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:45.174472' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583986;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:45.174491' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583987;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583987;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:46.174628' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583988;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583988;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1006  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1006  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:59:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000499  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583991;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:50.174474' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1007  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621583991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1007  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621583991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  7:59:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:51.176816' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583993;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:52.175079' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000459  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:53.175566' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583995;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:54.174603' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583995;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583996;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:55.174774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001065  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583996;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:56.174661' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001466  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583997;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  7:59:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583998;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:57.174501' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  7:59:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621583999;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 07:59:59.17459' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1010  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1010  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584001;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1011  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1011  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584002;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:01.17696' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584003;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584003;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584004;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:03.175625' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:03.175107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584005;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584005;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000689  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:05.174739' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:05.174824' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584007;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584007;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:07.175075' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584009;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584010;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1014  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1014  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:10.174136' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1015  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1015  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000243  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:00:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001451  Lock_time: 0.000978  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584012;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:11.174003' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:12.174585' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584014;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584014;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:13.174384' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584015;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:14.174015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005215  Lock_time: 0.005078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584016;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584017;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:16.174564' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001195  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584019;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584019;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:18.177339' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584020;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:19.175082' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001781  Lock_time: 0.001626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584020;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1018  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1018  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000606  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584021;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:20.17499' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1019  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1019  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001197  Lock_time: 0.000889  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:21.17463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000548  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:21.175106' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584023;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584023;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584024;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584024;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:23.17515' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584025;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:25.173849' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:26.174117' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584028;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584029;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584030;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:29.175671' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1022  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1022  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003981  Lock_time: 0.003708  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:30.175279' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005494  Lock_time: 0.004853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584031;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1023  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1023  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584032;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001064  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584032;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001068  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584033;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:33.174504' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:34.174566' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584035;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:34.174203' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584036;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584036;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:35.174338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000963  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584037;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:36.174997' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584038;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:37.17519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000818  Lock_time: 0.000376  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584039;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584039;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:38.177122' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000862  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584040;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1026  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1026  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:00:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584041;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584041;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:40.17483' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1027  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1027  Schema:   QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584042;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:41.174473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:43.174166' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584045;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:44.173832' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584045;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:44.177314' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584046;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584046;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:45.174116' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:45.177944' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584047;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584048;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:47.175553' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:48.174698' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584049;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:48.174478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584050;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:49.174291' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1030  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1030  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584051;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:50.174329' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1031  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1031  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:00:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584052;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584052;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:51.174173' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584052;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:51.178437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584053;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:00:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:53.173932' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584054;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:53.177324' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584055;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:54.174635' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584056;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:55.174334' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:56.174398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584058;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:57.174422' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:00:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584059;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001530  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584059;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584060;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:00:59.17413' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001338  Lock_time: 0.000930  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584060;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1034  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1034  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:01:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584061;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584061;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:00.175996' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1035  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1035  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584062;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:01.174497' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584063;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584064;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584065;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:04.173975' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584066;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:05.174504' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:06.174595' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:07.174503' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001035  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584068;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:08.174512' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001013  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584069;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:08.174551' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000814  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584070;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:09.174473' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000546  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:09.174473' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1038  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1038  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584071;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584071;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1039  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1039  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:11.175596' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584073;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:12.173921' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584073;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:12.177213' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584074;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:13.174629' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584075;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584075;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:14.174374' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584076;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584076;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584077;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:16.174867' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584078;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584079;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:18.173754' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:18.177217' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584080;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1042  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1042  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:01:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584081;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1043  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1043  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:01:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:21.1749' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584083;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:22.174465' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584084;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:23.174818' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584085;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584086;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:25.175777' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584087;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584087;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584088;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:27.173749' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584088;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:27.177625' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584089;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584089;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:29.175731' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1046  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1046  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584091;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:30.174666' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1047  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1047  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001066  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584092;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584092;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:31.174332' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:32.174978' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000841  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584094;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:33.174735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584095;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:34.173928' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584096;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584096;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:35.174038' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584097;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000915  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584097;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:36.174345' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584098;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:37.174161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:37.177572' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584099;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:38.177721' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1050  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1050  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584101;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584101;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1051  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1051  Schema:   QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584103;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584104;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:43.175809' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:44.174456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584106;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:45.175587' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000687  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584107;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584107;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:46.177376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584108;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:47.17483' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584109;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584109;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:48.177346' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584110;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1054  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1054  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:01:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:50.174326' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001296  Lock_time: 0.000751  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584111;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1055  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1055  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:01:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584112;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:51.174967' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584113;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584113;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:52.174983' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584114;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584114;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:01:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584115;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:54.17467' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001509  Lock_time: 0.000895  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584116;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584116;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:55.174562' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:56.174629' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584118;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584118;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:57.174447' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:01:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584119;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:58.174563' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584120;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:01:59.176102' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1058  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1058  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584121;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:00.173985' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584121;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:00.177554' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1059  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1059  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584122;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584122;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584123;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:02.174389' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584124;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584124;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000591  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584125;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:04.174541' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584126;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584127;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:06.174723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584128;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584128;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:07.176677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584128;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:07.180229' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584129;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584129;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:08.174289' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000610  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584130;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000646  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584130;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1062  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1062  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:10.175149' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1063  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1063  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584132;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:11.175589' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584133;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:13.174823' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584135;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:14.174487' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001155  Lock_time: 0.000983  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584135;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:15.17422' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584136;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:16.175106' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584138;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:17.17479' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584139;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:18.174384' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584140;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1066  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1066  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584141;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584141;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:20.177247' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1069  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1069  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:21.173793' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584142;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584142;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:21.177158' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584143;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001513  Lock_time: 0.000749  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584143;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:22.177082' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584144;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:23.174777' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001301  Lock_time: 0.001158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584145;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001564  Lock_time: 0.001159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584145;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001227  Lock_time: 0.001083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:25.174576' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001573  Lock_time: 0.001432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584146;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584147;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:26.174502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584148;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:27.184527' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584148;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584149;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:28.173712' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584149;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:28.177063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584150;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:29.174818' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1072  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1072  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584151;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584151;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1073  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1073  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584152;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584153;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:32.173991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:33.17465' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001561  Lock_time: 0.001411  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584155;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001707  Lock_time: 0.001401  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584155;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584156;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:35.174807' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584157;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001181  Lock_time: 0.001052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:36.174383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584158;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:37.17442' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584159;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:39.174582' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584160;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:39.174386' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1076  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1076  Schema:   QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000265  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:40.174347' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584161;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:40.174272' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1077  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1077  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000715  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584162;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000742  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584162;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584162;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:41.177363' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000563  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584163;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584163;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584164;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584165;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:44.177602' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584166;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584166;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:47.174554' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584169;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000816  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584169;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:48.174107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584170;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1080  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1080  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:02:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584171;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:50.174407' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1081  Schema:   QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000380  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1081  Schema:   QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000337  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:02:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584172;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584172;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:51.174274' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:52.173991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584174;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584174;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:53.173984' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:53.177197' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:54.174137' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584175;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:54.177561' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584176;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:55.174192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584176;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:02:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584177;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:56.174328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000678  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584178;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001029  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584178;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:57.177105' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:02:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005015  Lock_time: 0.004821  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584179;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005185  Lock_time: 0.004821  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584179;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:02:59.173685' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1084  Schema:   QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000369  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1084  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584181;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:00.175085' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1085  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1085  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:03:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000506  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584182;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584183;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:02.174944' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000685  Lock_time: 0.000484  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:02.174714' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000740  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584184;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:03.17476' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584185;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584185;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:04.177229' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584186;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584186;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:05.177697' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584187;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:06.177592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584188;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584188;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584189;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:08.176585' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584190;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1088  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1088  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584191;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1089  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1089  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:03:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:11.174471' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:12.174734' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001510  Lock_time: 0.001374  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584194;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001754  Lock_time: 0.001369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584194;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584195;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:15.17444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584197;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:16.174659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:17.174497' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584199;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:18.174141' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000662  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:19.174' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1092  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1092  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584201;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1093  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1093  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584202;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:21.177171' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584203;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:22.176986' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584204;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:24.174173' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584206;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:25.174715' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584207;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584207;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:26.174426' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584208;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:27.174015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584209;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584209;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:28.174545' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584210;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1096  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1096  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:03:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:30.175132' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1097  Schema:   QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1097  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:03:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584212;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000504  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:32.174845' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000526  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584213;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:32.174736' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584214;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584215;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:35.174385' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584217;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584218;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584219;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584219;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:38.174752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584220;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:39.174583' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1100  Schema:   QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000304  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1100  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584221;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:40.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1101  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1101  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584222;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:41.173901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584223;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584223;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:42.177328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584224;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000736  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584225;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584225;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:44.177249' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584226;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:45.175317' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584226;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584227;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584227;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:46.177438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584228;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584228;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:47.174361' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000571  Lock_time: 0.000352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584229;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584229;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584229;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:48.177216' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584230;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:49.173973' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1104  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1104  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:03:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584231;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584231;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:50.177245' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1105  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1105  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:03:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584232;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:51.177051' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584233;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:52.174764' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584233;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:03:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584234;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584234;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584235;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584235;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:54.177147' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584236;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:55.174721' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584237;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584237;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:56.174498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584238;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584238;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:57.174519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:03:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584239;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584239;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:58.174022' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:58.177274' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584240;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584240;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:59.173765' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584240;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:03:59.177295' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1108  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1108  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:00.173736' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001454  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584241;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1109  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1109  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584242;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:02.173648' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584244;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:03.17398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584245;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:04.174439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584245;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:04.174326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584246;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000379  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584246;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:06.177352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584248;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000559  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584248;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:07.177261' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584249;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:08.174134' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584249;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:08.177198' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584250;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584250;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584250;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:09.177173' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1112  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1112  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:04:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584251;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584251;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1113  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1113  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:04:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584252;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:11.177574' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001143  Lock_time: 0.000641  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584253;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584253;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:12.174739' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584254;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:13.17466' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584254;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:14.174802' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584255;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000773  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584256;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584256;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584257;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:16.174771' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584258;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584258;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:18.175156' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:18.174775' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584260;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:19.174355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584260;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1116  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1116  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584261;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:20.174381' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001487  Lock_time: 0.000986  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584261;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1117  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1117  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584262;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584263;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584264;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:23.173756' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584265;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000393  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584266;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584266;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:25.174437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000743  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584267;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584267;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:26.174291' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584268;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:27.174443' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001124  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:27.174322' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584269;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:28.174004' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584270;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:29.174918' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1120  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1120  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:30.173943' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:30.177162' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1121  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1121  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002396  Lock_time: 0.002214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584272;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:31.179921' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584273;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584273;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:32.175105' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000530  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584274;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001094  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584274;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584275;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:34.175026' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584276;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:36.175395' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584278;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:37.174467' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584279;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:38.174425' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000328  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584280;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:39.173933' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000867  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584280;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1124  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1124  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000671  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584281;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1125  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1125  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584282;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584283;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584284;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584284;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:43.175745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584285;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584285;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:44.174359' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584286;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584286;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:45.177869' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584287;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584289;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:48.17448' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584290;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584290;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:49.174099' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:49.177425' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1128  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1128  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:04:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001092  Lock_time: 0.000878  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001220  Lock_time: 0.000859  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584291;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1129  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1129  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:04:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584292;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:51.176154' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584293;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:52.174208' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584293;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:52.177542' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584294;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584295;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000946  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584296;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:55.174387' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001031  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:55.174225' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000370  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584297;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584297;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:56.17742' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:04:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584298;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:04:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584299;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584299;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:58.177048' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584300;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:04:59.175071' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1132  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1132  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000379  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584301;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584301;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:00.174686' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1133  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1133  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:05:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584302;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584302;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584304;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:03.174605' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000642  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584305;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000642  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584305;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:06.174352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001061  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584308;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584308;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:07.174011' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:07.177379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584309;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584309;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:08.175071' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584310;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000841  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584310;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:09.174039' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1136  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1136  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584311;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1137  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1137  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584312;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:11.177402' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001638  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584313;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:12.177032' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584314;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584314;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:13.174887' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:14.174968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001222  Lock_time: 0.001099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584316;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:15.174698' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001042  Lock_time: 0.000907  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:15.174774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584317;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584317;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:17.174638' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002172  Lock_time: 0.002022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584319;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002279  Lock_time: 0.001888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584319;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584320;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:19.173853' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:19.177186' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1140  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1140  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584321;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584321;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584321;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:20.176987' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1141  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1141  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:05:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584322;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584323;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:22.174616' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584324;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:23.175264' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584325;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:24.174431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001384  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584325;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584326;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000741  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584326;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:25.17407' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001186  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584327;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000751  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584327;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:26.173956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584328;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:28.173685' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000488  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584330;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1144  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1144  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000344  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584331;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001246  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584331;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1145  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1145  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:31.175981' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003481  Lock_time: 0.003322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:32.174524' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004260  Lock_time: 0.003899  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584333;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584334;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:33.179631' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584335;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584335;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:34.174686' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584336;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002096  Lock_time: 0.001912  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584337;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002281  Lock_time: 0.001780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584337;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:37.177268' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584339;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1148  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1148  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1149  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1149  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:43.175952' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584345;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:45.175074' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584347;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584347;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:46.174931' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584348;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584348;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:47.174346' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:47.1773' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584349;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584349;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584350;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1152  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1152  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:05:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:50.175113' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584351;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:50.175111' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1153  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1153  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:05:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000858  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:51.173832' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001487  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584352;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:05:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584353;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:52.175147' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:52.17572' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584354;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584354;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:53.173706' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584354;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:53.176934' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000386  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584355;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000889  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:54.17538' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584356;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:55.17462' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584357;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:56.173944' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584358;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:05:57.177312' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:05:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001997  Lock_time: 0.001798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584359;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002187  Lock_time: 0.001817  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584359;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584360;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1156  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1156  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:00.174737' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584361;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:00.17498' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1157  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1157  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:01.174495' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584362;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:01.174502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584363;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:02.177143' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584364;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000493  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:03.176873' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584365;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:04.17486' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584366;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:05.174407' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584367;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:06.17436' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584367;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:07.173899' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:08.173651' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584369;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:08.176883' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:09.17449' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584370;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:09.174413' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1160  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1160  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000437  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584371;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:10.174332' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1161  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1161  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:06:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584372;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:11.174028' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584372;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:11.177298' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584373;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584373;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584374;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:13.174687' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000587  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584375;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:14.175207' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584376;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:15.175779' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584377;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:16.174639' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584378;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:17.174259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:18.174315' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584379;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:18.174209' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1164  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1164  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584381;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1165  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1165  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:21.174088' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584383;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:22.174824' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000586  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584384;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:23.174521' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584384;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584385;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584385;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:24.174327' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:25.174574' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584386;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:25.174475' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001498  Lock_time: 0.001278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:26.174212' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584387;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:26.177349' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584388;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:27.174276' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584390;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:29.174527' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1168  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1168  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584391;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:30.174446' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:30.174274' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1169  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1169  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:06:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584392;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584392;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:32.174252' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584394;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584395;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:34.173709' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584395;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:34.177175' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000682  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584396;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:35.174536' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000769  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584396;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584397;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:36.174974' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584397;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:36.175075' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584398;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584398;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1172  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1172  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:41
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1173  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1173  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:41.174693' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584403;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000858  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584404;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:43.173724' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:44.174889' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584406;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584407;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584408;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:47.173618' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584408;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:47.177008' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000446  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584409;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000493  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584409;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:06:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000670  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584410;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:49.174536' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:49.17446' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1176  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1176  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:06:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584411;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:50.174476' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1177  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1177  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:06:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584417;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:56.174527' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584418;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:06:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:06:58.173828' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584420;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1182  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1182  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:00.174629' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1183  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1183  Schema:   QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000240  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584422;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584422;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:01.177315' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584423;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:02.177015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:03.174513' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584424;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:03.174872' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:04.174183' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584425;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584427;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584427;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:06.17747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584428;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:07.173808' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000610  Lock_time: 0.000499  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584429;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584430;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:09.174606' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1186  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1186  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584431;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1187  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1187  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584432;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584432;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:11.458646' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001147  Lock_time: 0.000921  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:12.174608' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001621  Lock_time: 0.001299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584433;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584434;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584435;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584436;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:15.173938' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.001121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584436;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:15.177219' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584437;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:07:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584438;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:17.174509' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584439;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:18.174368' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000841  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:19.174016' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1190  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1190  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:20.173884' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584441;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:20.177087' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1191  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1191  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584442;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584443;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584443;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:22.174257' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584445;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:24.174465' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584445;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:24.174448' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584446;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584446;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:25.174407' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000924  Lock_time: 0.000729  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584447;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:26.173701' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002397  Lock_time: 0.002322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584448;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584449;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584449;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:28.17404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:28.177276' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584450;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1194  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1194  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:07:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584451;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:30.174756' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1195  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1195  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584452;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584452;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:31.17487' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584453;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584454;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:33.174476' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584455;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000821  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:34.173983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584455;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:34.177403' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584456;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:35.174084' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:36.174544' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584457;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:36.174635' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584458;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584458;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584459;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:38.174081' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584459;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:38.17704' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584460;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584460;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1198  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1198  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584461;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:40.174477' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1199  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1199  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:07:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584462;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584464;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:43.17789' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001937  Lock_time: 0.001791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584465;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000880  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:44.174577' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:45.178139' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584467;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584467;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:46.174349' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584468;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584468;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001234  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584469;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:07:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584470;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584470;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:49.17703' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1202  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1202  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:07:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584471;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584471;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1203  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1203  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:07:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584472;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:51.174592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584473;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:52.174195' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584474;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584474;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:53.174012' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:55.174895' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:55.174862' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000816  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:56.174463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584478;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:07:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584479;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:58.175011' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000700  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584480;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584480;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:07:59.174474' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1206  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1206  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001207  Lock_time: 0.000829  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584481;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:00.177279' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1207  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1207  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584482;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:01.173781' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584482;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:01.177168' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584483;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584483;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584483;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:02.177392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584484;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584484;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:03.173826' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584484;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:03.177008' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584485;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584485;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584486;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:05.174798' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000975  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584487;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001442  Lock_time: 0.000975  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584487;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000777  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:07.174774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:07.174601' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:08.174174' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001280  Lock_time: 0.000757  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584489;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1210  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1210  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1212  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1212  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584494;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:13.174928' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584494;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584495;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:14.17443' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:14.174432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584496;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584496;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584497;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584498;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:17.174174' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:18.176942' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001341  Lock_time: 0.001212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584500;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001537  Lock_time: 0.001204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584500;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1216  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1216  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:08:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000713  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584501;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:20.174445' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584501;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:20.174497' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1217  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1217  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584502;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584502;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584502;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:21.177279' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584503;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:22.173919' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584504;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584504;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584504;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:23.176867' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584505;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000547  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584505;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584506;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:25.174397' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584507;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:26.174163' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584507;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000923  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584508;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:27.173852' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:27.177206' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584509;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584509;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:28.17687' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584510;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:29.174789' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584510;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1220  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1220  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584511;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:30.174917' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584511;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:30.174649' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1221  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1221  Schema:   QC_hit: No
# Query_time: 0.000094  Lock_time: 0.000058  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584512;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:31.174619' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584512;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:31.174745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:32.174667' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584514;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:33.175127' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584515;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:34.177277' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584516;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:35.176894' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584517;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584517;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:36.174657' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584518;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584518;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:37.174474' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000770  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584519;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584519;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:38.177138' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002186  Lock_time: 0.001778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584520;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:39.18106' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1225  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1225  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:40.17523' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1226  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1226  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:08:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584522;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584522;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584523;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:42.173603' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584524;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:43.179325' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584525;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:44.173978' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:44.177254' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584526;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584526;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:45.177544' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584527;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584527;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:47.174498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584529;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:48.174005' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584530;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000671  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:49.173927' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584530;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:49.177095' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1232  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1232  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:08:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000928  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:50.174816' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1235  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1235  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:08:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584532;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:51.174363' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584533;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584533;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:52.173703' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:52.177277' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584534;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584534;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:53.177308' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584535;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584535;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:54.173919' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000549  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:54.177667' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584536;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:08:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584538;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584538;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:57.174666' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:08:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584539;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584539;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:08:58.17463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584540;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1239  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1239  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:00.174564' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1240  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1240  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584542;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:01.17459' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584543;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584545;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:04.174999' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584546;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001324  Lock_time: 0.001144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584547;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:06.174336' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584548;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:07.174001' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584548;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:07.177138' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584549;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000977  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584549;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000945  Lock_time: 0.000788  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584550;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:09.174094' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:09.177277' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1246  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1246  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:10.174405' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1247  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1247  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:11.173886' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584552;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:11.177286' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584553;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584553;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:12.174299' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584554;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:13.173858' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001166  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584554;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584554;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:13.177133' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000964  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584555;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584555;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584555;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:14.17748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584556;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:17.174774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584559;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584560;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:19.174149' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:19.177182' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1252  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1252  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000268  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584561;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584561;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:20.177175' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1253  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1253  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584562;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584563;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:22.17489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:23.174436' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:23.177248' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001411  Lock_time: 0.001283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584565;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002237  Lock_time: 0.001174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584565;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001374  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584566;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584567;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:26.175531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584568;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584568;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:27.17732' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584569;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584569;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:28.173996' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584570;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1259  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1259  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1260  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1260  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584572;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584572;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:31.174392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584573;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:32.1743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584574;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584575;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584575;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:34.174696' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:34.176649' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584576;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:35.173878' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584576;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:35.177386' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584577;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:37.17406' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:38.174583' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001019  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584580;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:39.174182' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1265  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1265  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:09:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001869  Lock_time: 0.001013  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584581;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002131  Lock_time: 0.001068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584581;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1266  Schema:   QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000297  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1266  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584582;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:41.174146' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:41.174305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584583;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584583;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584584;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:43.173578' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584585;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:44.174364' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584585;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584586;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584586;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:46.17447' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584587;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:47.174013' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001341  Lock_time: 0.001185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584588;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584589;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:48.174617' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584589;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:48.17456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000708  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584590;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584590;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:49.174515' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1269  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1269  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000817  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584591;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:50.174805' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1271  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1271  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:09:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000736  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584592;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584592;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:51.177149' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584593;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584593;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:52.177167' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584594;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584595;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584596;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:09:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584597;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:56.174786' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584597;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:56.174898' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584598;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:57.175848' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:09:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584599;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:09:58.174585' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584600;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1277  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1277  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:10:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1278  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1278  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584603;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:03.174463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:03.174506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001027  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584605;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584605;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:04.174078' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584605;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:04.177311' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584606;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584606;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:05.177241' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584607;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584607;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:07.174318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584609;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:08.173893' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584609;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:08.177193' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584610;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000619  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:09.17376' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:09.177044' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1281  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1281  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001460  Lock_time: 0.000890  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584611;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:10.175367' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1282  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1282  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584612;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584612;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:11.173809' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:11.177006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.007124  Lock_time: 0.006936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584613;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.007177  Lock_time: 0.006790  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584613;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584614;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:13.174067' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:13.17735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001306  Lock_time: 0.000939  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584615;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584616;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:15.188571' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000725  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584617;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584617;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:16.174621' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584618;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:17.175053' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584619;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:18.174183' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1285  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1285  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584621;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:20.177417' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1286  Schema:   QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000393  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1286  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:10:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584622;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584623;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:23.174028' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584625;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584625;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:24.174695' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000765  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584626;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:25.17543' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584627;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:26.177092' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584628;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:27.175093' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584629;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:28.174429' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584630;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:29.174834' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:29.174773' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1289  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1289  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001208  Lock_time: 0.000973  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001300  Lock_time: 0.000912  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584631;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1290  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1290  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:10:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584632;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:31.177213' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584633;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:33.174089' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:33.177345' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000755  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584635;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:34.173974' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584638;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584638;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:37.175101' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584639;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584639;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:38.175024' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584640;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:39.174356' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1293  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1293  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:10:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1294  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1294  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584642;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:42.173893' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584643;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:42.177129' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584644;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584644;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:43.179968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584645;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584646;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:45.176832' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584647;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001043  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:46.174424' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584647;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:46.177608' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584648;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584648;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:47.173704' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:47.177' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001661  Lock_time: 0.001469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584649;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:48.174404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002516  Lock_time: 0.002079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584649;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:10:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:49.174321' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1298  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1298  Schema:   QC_hit: No
# Query_time: 0.000103  Lock_time: 0.000062  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001115  Lock_time: 0.000957  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584651;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001345  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584651;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1299  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000248  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1299  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:10:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:55.174672' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:55.17531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002676  Lock_time: 0.002431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:56.173894' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003282  Lock_time: 0.003051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584657;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584658;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:57.177492' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:10:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584659;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:10:58.174494' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584660;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1302  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1302  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:11:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584661;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:00.177161' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1303  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1303  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584662;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584662;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:01.176834' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584663;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:02.174522' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:03.174057' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584665;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584665;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:04.177192' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:05.174185' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584666;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:05.174373' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000962  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:06.173859' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584667;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:06.17828' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584668;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:11:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584670;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1308  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1308  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000660  Lock_time: 0.000490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584671;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:10.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001330  Lock_time: 0.000872  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584671;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1309  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584671;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1309  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:11:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584672;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584672;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:11.173979' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:11.177177' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584673;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584673;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:12.17748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584674;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584674;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:11:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001558  Lock_time: 0.001365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584675;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:14.177336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001631  Lock_time: 0.001409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584675;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:14.174057' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584676;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584676;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:15.174651' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584677;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584677;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:16.174604' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584678;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:17.175587' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584679;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:18.174681' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001694  Lock_time: 0.001531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584680;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:19.17449' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1312  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1312  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:11:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584681;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:20.177187' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1314  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1314  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584682;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:21.177116' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584683;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:22.174798' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000981  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584684;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:11:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584685;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:11:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584686;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:25.174506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584687;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:26.176624' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001776  Lock_time: 0.001640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584688;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001177  Lock_time: 0.001048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584688;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:27.174179' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000600  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584689;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:28.174174' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001020  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584690;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1321  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1321  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584691;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584691;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:30.17737' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1322  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1322  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584692;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:31.173744' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:31.177124' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584693;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584693;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:32.174664' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584694;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:33.174787' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584695;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:34.173916' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001027  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584695;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584695;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:34.177099' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584696;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584696;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:35.173682' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:35.176933' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584697;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:36.174424' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001164  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584697;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:11:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:37.174675' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584699;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:38.178652' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584700;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:39.17389' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1325  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1325  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584701;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:40.174623' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1326  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1326  Schema:   QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000508  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:11:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:41.174421' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584703;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584703;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:42.177051' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584704;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:43.175029' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:44.174306' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000534  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584706;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584706;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584707;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:46.180153' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584708;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584708;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:47.174069' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584709;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001603  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584710;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:49.174271' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1329  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584710;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1329  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584710;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584711;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584711;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:50.173883' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584711;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:50.177173' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1330  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584711;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1330  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584711;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:11:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584712;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:51.176879' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584713;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584713;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584714;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584714;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:53.177362' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000574  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584715;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584715;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:54.176998' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584716;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001158  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584717;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584717;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:56.174573' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000773  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584718;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:57.174272' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:11:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584719;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001210  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:11:58.174599' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.005585  Lock_time: 0.004833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621584719;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:11:59.626'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:11:59.626')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:11:59.626')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:12:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621584720;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1333  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584720;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1333  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584720;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:01
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1334  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584721;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1334  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584721;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584722;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:01.17486' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000353  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584723;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584725;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:04.174587' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584726;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584727;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584728;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584729;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584729;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001334  Lock_time: 0.000851  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584730;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1337  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584730;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1337  Schema:   QC_hit: No
# Query_time: 0.000107  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584730;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584731;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1338  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584731;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1338  Schema:   QC_hit: No
# Query_time: 0.000099  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584731;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584732;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584733;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584734;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:13.174496' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584735;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584735;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:14.174716' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000487  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001679  Lock_time: 0.001049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584737;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584738;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:17.17723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584739;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584739;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:18.174555' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584740;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584740;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:19.177317' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1341  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584740;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1341  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584740;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584741;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:20.177538' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1342  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584741;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1342  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584741;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001110  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584742;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584742;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:21.177143' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001263  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584743;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584744;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:23.174932' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584744;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:23.174746' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:24.174447' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000790  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584745;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001145  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584746;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:25.17467' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584747;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584747;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584748;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:27.174387' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584748;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:27.174316' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584749;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000648  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584749;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584750;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584750;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1345  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584750;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1345  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584750;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1346  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584751;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1346  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584751;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584752;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000843  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584752;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:31.175135' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584753;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584754;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584754;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:33.174649' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584755;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:34.174109' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584755;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:34.177287' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001020  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:35.173781' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000740  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:36.173817' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003306  Lock_time: 0.003102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584758;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:37.173704' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584759;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:38.176888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584760;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584760;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:39.174537' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1349  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584760;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1349  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584760;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:40.174732' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584761;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:40.174568' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1350  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584761;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1350  Schema:   QC_hit: No
# Query_time: 0.000107  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584761;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:12:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:41.174184' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584762;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:41.177646' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:42.17442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:42.174657' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584764;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000532  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584764;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584766;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:45.176308' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584767;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584767;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:46.173852' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:46.17712' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584768;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000428  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584768;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:12:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584769;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:48.175964' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584770;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:49.174833' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001020  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584770;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:49.174758' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1353  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584770;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1353  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584770;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584771;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584771;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1354  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584771;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1354  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584771;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:12:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584772;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:52.174408' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584774;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584775;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:54.173965' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584775;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:54.177565' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000737  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584776;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000922  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584777;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:56.174004' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584778;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584778;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:57.173878' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:57.177212' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:12:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584779;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584779;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584779;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:58.17687' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001174  Lock_time: 0.000491  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621584779;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:12:59.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:12:59.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:12:59.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:13:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621584780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:12:59.174391' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1357  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584780;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1357  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584780;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584781;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:00.174048' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:00.177219' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1358  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584781;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1358  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584781;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000440  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584782;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000756  Lock_time: 0.000457  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584782;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584784;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:04.174455' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584786;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:05.175167' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:06.174171' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584788;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:07.173669' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:07.176903' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584789;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:08.174796' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584790;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584790;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:09.174388' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1361  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584790;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1361  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584790;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584791;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:10.177468' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1362  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1362  Schema:   QC_hit: No
# Query_time: 0.000095  Lock_time: 0.000061  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:13:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584793;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:12.173656' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:12.176874' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584794;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:13.174919' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001266  Lock_time: 0.001153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584794;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584795;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:14.174391' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584796;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584796;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:15.174441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001106  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584797;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.001018  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584798;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:17.174164' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000736  Lock_time: 0.000531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584799;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584799;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:18.185476' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:19.174002' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1365  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584800;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1365  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584800;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584801;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1366  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1366  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584802;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584802;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:21.176952' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584803;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584803;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:22.174647' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584804;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584804;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:23.177319' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001511  Lock_time: 0.001300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584805;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:25.174764' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001774  Lock_time: 0.001237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584806;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584807;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:26.174442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584807;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:26.174392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584808;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584808;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584808;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:27.177082' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584809;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584809;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584810;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:29.174616' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1371  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1371  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584811;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584811;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1373  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1373  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:13:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584813;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000563  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584813;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:32.177093' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584814;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584815;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:34.174409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584816;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:35.174155' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584816;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:35.177337' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584817;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001658  Lock_time: 0.001369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584817;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584818;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:37.174631' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584819;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584819;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:38.174046' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584819;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:38.17738' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584820;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:39.17403' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584820;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:39.17727' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1378  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1378  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584821;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584821;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584821;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:40.177572' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1379  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1379  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584822;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584822;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584822;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:41.177599' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584823;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584823;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:42.174189' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:42.177387' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584824;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000612  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584824;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584824;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:43.176986' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584825;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584825;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584826;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:45.175121' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584827;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584827;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:47.174961' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584829;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584830;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:49.174821' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1384  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1384  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:13:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:50.179636' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1385  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1385  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:13:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584832;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:51.174608' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584833;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:52.174339' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:52.174742' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584834;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:53.1752' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:53.17496' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584835;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584835;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:13:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584836;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:55.175909' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584837;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584837;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:56.174752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584838;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:57.174674' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:13:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584839;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:58.174501' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.000689  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621584839;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:13:59.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:13:59.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:13:59.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:14:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001425  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621584840;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584840;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:13:59.174616' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1390  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1390  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:14:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584841;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584841;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1391  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1391  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584842;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:01.174674' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584843;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:02.174586' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584844;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:03.17513' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584845;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584845;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584846;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:06.174336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001667  Lock_time: 0.001214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584847;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000619  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584848;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:08.174453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1396  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000252  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1396  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584851;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000739  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584851;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:10.176927' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1398  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1398  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584852;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:11.173603' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584853;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584854;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:14.174871' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001558  Lock_time: 0.001083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584855;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000504  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584856;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584856;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:15.175471' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584857;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000540  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:16.174974' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584858;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584858;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:17.174408' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584859;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584859;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:18.174344' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584860;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584860;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:19.177027' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1401  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1401  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584861;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1402  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1402  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000783  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584862;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:21.177382' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000751  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584863;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000755  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584863;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:22.173993' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584864;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:23.174324' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584865;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:24.174133' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584865;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:24.177766' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584866;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584866;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584867;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:26.174508' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:27.174244' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:28.17397' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:29.174942' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584870;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:29.175139' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1405  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1405  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000234  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584871;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:30.174825' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001885  Lock_time: 0.001167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584871;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1406  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1406  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:14:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584872;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:31.174705' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001219  Lock_time: 0.000719  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584872;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000841  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584873;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:32.174361' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584873;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:32.174193' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001392  Lock_time: 0.001256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584874;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000619  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:34.175157' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584876;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:35.17483' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584877;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:36.174823' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584878;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:37.174581' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584879;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584879;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584880;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000438  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584880;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1410  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1410  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:14:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584881;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:40.175172' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1411  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1411  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:14:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001028  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584882;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584882;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:41.1748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584883;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004754  Lock_time: 0.004598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584884;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:43.17485' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005485  Lock_time: 0.005319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584884;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584885;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:44.174311' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584885;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:44.174368' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584886;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584886;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584886;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:45.177083' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584887;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584887;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584888;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:47.174328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584889;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:48.173644' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584889;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:48.17688' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584890;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:49.174542' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584890;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:49.174609' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1414  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1414  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:14:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584891;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584891;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1415  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1415  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:14:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584892;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:51.178502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584893;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:53.174284' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584894;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000460  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584895;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:54.173917' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001531  Lock_time: 0.001111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584895;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:14:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584896;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584896;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:55.174315' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000480  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584897;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:56.173794' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001028  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584898;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:57.174613' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001019  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:57.174576' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:14:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:58.174082' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001684  Lock_time: 0.001272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621584899;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:14:59.626'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:14:59.626')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:14:59.626')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:15:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621584900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:59.173717' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:14:59.177061' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1418  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1418  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:15:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584901;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:00.174927' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1419  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1419  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584902;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000608  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584902;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:02.174154' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584904;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:03.173634' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584904;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:03.177135' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584905;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584905;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584905;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:04.1773' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584906;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:05.174028' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:05.177307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584907;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584907;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:06.174413' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584908;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:07.174833' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002677  Lock_time: 0.002545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:08.174307' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003256  Lock_time: 0.002904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584909;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584910;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:09.175114' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1422  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1422  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:15:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584911;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584911;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:10.175267' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1423  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000286  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1423  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584912;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584912;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:11.174558' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584913;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584914;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:13.175521' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584914;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:13.174692' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001871  Lock_time: 0.001746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584915;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002536  Lock_time: 0.001896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584915;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584916;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584916;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:15.174966' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000865  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584917;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:16.174504' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584918;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:17.173921' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:17.177228' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584919;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:18.174528' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584920;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584920;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1426  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1426  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000230  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584921;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:20.174836' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1427  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1427  Schema:   QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:15:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000862  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584922;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584923;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584923;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:22.177466' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584924;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584924;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:24.174753' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584926;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:25.174616' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001336  Lock_time: 0.001130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584927;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:26.176006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584928;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584928;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584929;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:28.175686' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584930;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1430  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1430  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000065  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:15:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000846  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584931;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:30.174749' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1431  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1431  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:15:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000566  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000634  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:31.174752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584933;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:32.17438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584934;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001301  Lock_time: 0.000880  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584935;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584936;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:35.174554' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:36.174121' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001500  Lock_time: 0.001104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584937;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000735  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584938;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:37.173835' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584939;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:38.174749' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584939;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000613  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:39.174529' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1434  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1434  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584941;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:40.173997' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1435  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1435  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584942;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:41.176991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584943;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584943;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:42.174617' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000913  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584944;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000663  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584945;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:44.174407' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001106  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584945;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:44.174454' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584946;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584946;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:48.174464' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584950;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:49.174702' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584950;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1438  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1438  Schema:   QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000423  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000457  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:50.174357' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584951;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1439  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1439  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:15:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584952;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584952;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:51.177095' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584953;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:52.174472' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584954;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584954;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:53.177278' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584955;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001301  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584955;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584955;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:54.177172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584956;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584956;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:55.17473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001547  Lock_time: 0.001125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584957;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:56.175158' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:15:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584958;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:15:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584959;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000427  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621584959;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:15:59.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:15:59.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:15:59.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:16:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001273  Lock_time: 0.000976  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621584960;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584960;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:15:59.177157' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1443  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1443  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:16:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584961;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:00.176986' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1444  Schema:   QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000254  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1444  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000249  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000437  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:01.174558' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000481  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584962;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:01.174377' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584963;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584963;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:02.173923' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000464  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584964;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584965;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584965;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:04.174529' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:05.174911' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001011  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584967;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:06.174787' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584968;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:07.174352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584969;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:08.174383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:09.174291' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001108  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584970;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1447  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1447  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000964  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584971;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:10.17411' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1448  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1448  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000687  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584972;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584973;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584975;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:14.174634' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584976;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:15.174403' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584977;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:16.173997' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584977;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:16.174567' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584978;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:17.173857' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001683  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584978;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:18.174838' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584980;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1451  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1451  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:16:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584981;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584981;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:20.177404' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1452  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1452  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584982;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:21.176931' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584983;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584983;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:25.17463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584987;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001243  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584987;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001011  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584988;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:27.173977' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584989;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584989;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:28.177127' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584990;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:29.176828' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1455  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1455  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584991;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:30.175279' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1456  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000263  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621584991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1456  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621584991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584992;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:31.174596' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000436  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584993;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:32.174479' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001582  Lock_time: 0.001418  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000848  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584994;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:33.174034' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584995;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:34.174349' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584996;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:35.174124' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001698  Lock_time: 0.001297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584996;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:36.174028' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584998;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584998;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:37.174443' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621584999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:38.177246' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585000;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000456  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585000;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585000;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:39.17696' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1459  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1459  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:16:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585001;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000566  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585001;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1460  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1460  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:16:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:41.174748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585003;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:43.174797' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000845  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585005;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585005;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:44.174478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001299  Lock_time: 0.001107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:45.174641' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:46.174507' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585007;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585008;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585008;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:47.177537' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585009;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:16:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1463  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1463  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:16:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585011;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585011;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1464  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1464  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:16:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:51.174186' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001114  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585012;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.001268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:52.173838' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001193  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:53.173752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585015;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:54.174507' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585016;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585016;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:55.176951' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585017;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:56.174885' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000564  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585018;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585018;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:57.17729' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:16:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585019;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585019;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:16:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:16:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:16:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:17:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585020;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:16:59.174756' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585020;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1467  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1467  Schema:   QC_hit: No
# Query_time: 0.000098  Lock_time: 0.000062  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585021;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:00.174669' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1468  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1468  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:17:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585022;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:01.174205' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585023;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:02.174349' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003633  Lock_time: 0.003425  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585025;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:04.174354' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:04.174643' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585026;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.001035  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585026;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:05.174921' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:06.173806' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:06.176901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585028;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585029;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585029;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585030;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1471  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1471  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585031;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585031;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:10.176984' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1472  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1472  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585032;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585032;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:11.175216' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:12.173764' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:12.177288' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:13.174493' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002766  Lock_time: 0.002576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585035;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002902  Lock_time: 0.002490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585035;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585036;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:15.174969' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000735  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585037;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000471  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585037;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585038;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:17.174535' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000916  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:17.174457' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585039;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585039;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585039;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:18.177236' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585040;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585040;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:19.173927' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1475  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1475  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585041;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:20.174083' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1476  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1476  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585042;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:21.177352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585043;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:22.177167' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585044;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585044;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:23.177114' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002716  Lock_time: 0.002452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:24.174589' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003511  Lock_time: 0.003088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585045;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585046;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:25.174073' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.000838  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585046;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585047;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:26.174685' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000670  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585048;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585048;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:27.174804' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585049;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:28.175404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585050;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1479  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1479  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585051;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:30.174366' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1480  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1480  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:17:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585052;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:33.17435' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:34.174394' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585056;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:35.173855' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001222  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585056;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585056;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:35.177531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000729  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585057;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001145  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000977  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585058;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:37.174026' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585059;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:38.173742' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585060;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:39.174929' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1483  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1483  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:40.17457' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001120  Lock_time: 0.000764  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585061;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1484  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1484  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001169  Lock_time: 0.001001  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585062;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:41.173899' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:41.177227' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585063;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585063;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:42.176919' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585064;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585067;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585068;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:47.177338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001254  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585069;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:48.173768' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585070;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:49.173895' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:49.176966' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1487  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1487  Schema:   QC_hit: No
# Query_time: 0.000102  Lock_time: 0.000064  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:17:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585071;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1488  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1488  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:17:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585072;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:51.174425' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:51.17484' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585073;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:53.174691' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001086  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585075;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:17:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585076;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:55.174765' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000646  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585077;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585078;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:17:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585079;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:17:58.175123' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001378  Lock_time: 0.001014  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585079;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:17:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:17:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:17:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:18:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585080;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1491  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1491  Schema:   QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585081;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585081;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:00.175054' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1492  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1492  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585082;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000466  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:02.174667' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585083;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:02.174974' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585084;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:03.174402' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585084;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585086;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:05.174181' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585087;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585088;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000725  Lock_time: 0.000581  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585089;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:08.174324' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000407  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585089;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:08.174321' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585090;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:09.177062' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1495  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1495  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585091;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:10.175188' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1496  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1496  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585092;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000862  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585092;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:11.176971' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585093;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585094;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:13.173963' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000755  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:14.173814' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:15.175686' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000790  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585097;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:16.174312' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585098;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585098;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:17.173812' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:17.177047' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001108  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585099;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:18.174696' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002802  Lock_time: 0.002107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585099;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1499  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1499  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000709  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585101;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001469  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585101;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1500  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1500  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585104;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:23.174814' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585105;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:24.173798' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001125  Lock_time: 0.000919  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585106;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:25.174729' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001093  Lock_time: 0.000899  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:25.174729' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585107;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001235  Lock_time: 0.001115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585107;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:26.173996' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:27.173854' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585109;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585109;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:28.1751' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:29.175115' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1503  Schema:   QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000276  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1503  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:30.173793' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001830  Lock_time: 0.001005  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585111;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1504  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1504  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585112;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000354  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585113;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:32.174659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585114;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:33.174191' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:33.174348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:34.173909' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001199  Lock_time: 0.000811  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585115;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585115;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:34.177217' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585116;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585116;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000629  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:36.174655' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000625  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585117;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585118;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585120;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:39.174771' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:39.174734' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1507  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1507  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585121;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585121;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1508  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1508  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585122;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:41.173864' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:41.177211' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585123;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:18:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585124;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:43.173835' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585124;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:43.177078' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585125;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585125;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:45.174207' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585127;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:46.173882' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585128;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:47.177029' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585129;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585129;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585130;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:49.174124' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1511  Schema:   QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000308  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1511  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:18:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585131;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:50.173999' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:50.177343' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1512  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1512  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:18:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585132;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585132;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:51.173865' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585133;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585133;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:52.174479' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585134;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:53.174341' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:53.17433' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585135;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:54.174048' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000769  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:55.173765' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000915  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:56.174739' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000642  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:56.174837' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585138;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585138;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:18:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:18:58.177317' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001547  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585139;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:18:59.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:18:59.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:18:59.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:19:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585140;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1515  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1515  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585141;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1516  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1516  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:01.174399' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585143;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:02.17709' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585144;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:03.176819' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000768  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585145;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:04.174507' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001227  Lock_time: 0.001157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585145;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585146;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000818  Lock_time: 0.000460  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585146;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:06.174324' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001413  Lock_time: 0.000950  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585148;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000821  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585149;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585149;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:09.174766' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1519  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1519  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000653  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585151;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:10.174308' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1520  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1520  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585152;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:11.173848' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585152;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:11.177058' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585153;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:12.174613' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585154;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000621  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585155;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:14.173956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000906  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585156;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585156;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:15.173782' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585156;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:15.177135' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585157;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585157;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000535  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585158;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:17.174337' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:17.174212' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585159;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585160;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:19.176861' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1523  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1523  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:19:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585161;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1524  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1524  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:19:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585162;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585163;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:22.174406' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585163;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000476  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585164;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:23.17431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585164;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:23.174098' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585166;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585167;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:26.174676' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585168;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585168;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585169;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585170;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585170;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:29.174333' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1527  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1527  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585171;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1528  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1528  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:19:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585172;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585172;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:31.177063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585173;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585173;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:32.176777' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585174;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000437  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585174;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:33.174432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:34.174147' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001094  Lock_time: 0.000928  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585176;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585176;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:35.177201' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585177;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:37.174547' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000770  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585179;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:38.176955' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585180;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1531  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1531  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585181;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1532  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1532  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:19:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:42.174956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:43.174509' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585185;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:44.1743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:45.173782' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585187;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:46.174894' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585188;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:47.174173' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001254  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585189;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585189;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:48.177175' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585190;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1535  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1535  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:19:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585191;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:50.174066' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:50.177481' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1536  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1536  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:19:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585192;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585192;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:51.174331' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585193;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:52.177249' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585194;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585195;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585195;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:54.174869' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:55.174652' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000487  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585196;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001114  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585197;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:19:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000439  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585198;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:57.17735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:19:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001176  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585199;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000332  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585199;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:58.175214' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585199;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:19:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:19:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:19:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:20:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:19:59.174045' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1539  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1539  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585201;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:00.17386' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1540  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1540  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585204;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:03.175328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:04.173903' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585206;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585206;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:05.174869' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000494  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:06.174518' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585208;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585208;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:07.174298' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585210;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:09.175594' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1543  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1543  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:20:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585211;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000728  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:10.174372' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1544  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1544  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:20:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585212;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:20:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585213;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585214;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:13.17486' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:14.174522' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585216;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001329  Lock_time: 0.000852  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585216;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:15.176992' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005179  Lock_time: 0.005032  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585217;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:16.174336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005858  Lock_time: 0.005575  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585217;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585218;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:17.174143' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585219;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1547  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1547  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585221;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:20.174355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:20.174561' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1548  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1548  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000054  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:20:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585222;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:21.173937' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001096  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585222;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585222;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:21.177244' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585223;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585223;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:22.173922' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:23.174594' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585224;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:23.174614' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585225;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585225;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:24.174341' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585229;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:28.174658' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585230;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:29.174095' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001106  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585230;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585230;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:29.177472' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1554  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1554  Schema:   QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000323  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585231;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585231;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585231;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:30.177523' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1555  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1555  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:20:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585232;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585232;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:31.177223' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585233;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585233;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585233;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:32.17721' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585234;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585234;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585235;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:20:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585236;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:35.177287' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585237;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000743  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585237;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:36.177133' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585238;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:20:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585239;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:38.174987' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585240;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585240;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:39.174591' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1558  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1558  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:40.174815' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:40.174619' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1559  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1559  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585242;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585242;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:20:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:42.174522' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001340  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585244;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:20:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585245;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:44.174545' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585246;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:45.174371' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585247;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585247;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:46.173879' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:48.17456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000596  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585250;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000606  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585250;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1562  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1562  Schema:   QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000312  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001035  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:50.174193' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1563  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1563  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:20:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585252;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000898  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585252;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:51.175852' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585253;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:52.173632' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585254;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:54.174866' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001295  Lock_time: 0.000870  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585256;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585256;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:55.174259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:56.174472' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585258;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:57.174262' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:20:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585259;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:20:58.174789' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001981  Lock_time: 0.001525  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585259;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:20:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:20:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:20:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:21:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585260;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1566  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1566  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585261;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:00.174659' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1567  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1567  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:21:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585262;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001083  Lock_time: 0.000913  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585263;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585264;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585265;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:04.175042' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585266;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585266;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:05.177026' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585267;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000849  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:07.173683' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:08.178188' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585270;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585270;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1570  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1570  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000274  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:10.17453' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001423  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:10.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1571  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1571  Schema:   QC_hit: No
# Query_time: 0.000091  Lock_time: 0.000056  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:21:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585272;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:11.174205' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585273;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:12.174124' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000845  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585274;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000741  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585274;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:13.177207' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000724  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585275;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585276;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000550  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585276;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:16.174601' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585278;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585279;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:18.174111' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585279;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:18.177392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000530  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585280;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1574  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1574  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001307  Lock_time: 0.001024  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:20.174151' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585281;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:20.177423' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1575  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1575  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585282;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585282;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:21.17394' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585282;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:21.177209' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585283;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585283;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:22.173732' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585283;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:22.177181' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585284;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585284;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585284;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:23.176772' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585285;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585285;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585286;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585286;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:25.174753' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585287;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585288;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:27.177362' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002073  Lock_time: 0.001388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585289;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001015  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585290;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585290;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:29.174968' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1578  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1578  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585291;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1579  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1579  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.001076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585292;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:31.175094' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585292;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:31.175038' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000725  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585293;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585293;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585294;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:33.174397' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585295;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000443  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585295;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:34.173909' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585298;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:37.174681' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000608  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585299;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585299;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:39.177223' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1582  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1582  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585301;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585301;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585301;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:40.177023' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1583  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1583  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:21:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585302;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585302;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:41.174538' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:42.174112' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:43.174333' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585305;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585306;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585306;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:45.174494' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:46.174032' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:47.177179' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585309;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585309;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585309;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:48.177489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585310;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585310;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1586  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1586  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:21:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1587  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1587  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:21:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585312;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585313;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:52.178069' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585314;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:21:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000818  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585315;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:55.174938' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001184  Lock_time: 0.000985  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585317;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:56.174558' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585317;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:56.17449' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585318;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585318;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:57.173953' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:57.177317' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:21:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585319;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585319;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:58.173913' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585319;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:58.177073' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585319;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:21:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:21:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:21:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:22:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585320;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:21:59.174716' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1590  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1590  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585321;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585321;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:00.174393' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1591  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1591  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:22:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585322;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585322;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:01.177047' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585323;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585323;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:02.174846' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585324;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585324;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:03.174448' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585325;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:04.173857' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585326;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:05.173904' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585327;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:06.174492' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585328;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000548  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585329;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:08.174331' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585330;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585330;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:09.174335' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1594  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1594  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:22:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585331;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1595  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1595  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:22:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585332;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:11.178032' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585333;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585334;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:13.174069' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001749  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585334;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585334;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:13.177358' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585335;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:14.174299' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001829  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585335;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585336;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000630  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585337;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585337;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:16.174924' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585338;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585338;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:17.174443' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585339;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585340;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585340;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:19.177273' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1598  Schema:   QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1598  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:22:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585341;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:20.174727' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1599  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1599  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585342;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585342;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:21.174393' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585343;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:22.174478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:23.174293' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001005  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585344;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000526  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585345;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:24.174357' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:25.175018' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585346;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:25.174897' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001560  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585347;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585347;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:26.174624' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:27.174689' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585349;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:28.174401' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585350;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:29.17442' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1602  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1602  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:22:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:30.174371' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1603  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1603  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:31.174396' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585352;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:31.174548' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585353;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585353;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:32.177707' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585354;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585354;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:34.17439' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585356;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:35.174514' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585357;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001382  Lock_time: 0.001177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585357;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:36.175377' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585358;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585358;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:37.174989' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:38.174694' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585360;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585360;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:39.174842' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1606  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1606  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585361;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:40.174534' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1607  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1607  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585362;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585362;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585363;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:42.177228' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585364;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000641  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585365;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:44.17844' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585366;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:45.179096' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585367;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585367;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:46.17461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:47.174083' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585369;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585369;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:48.177353' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585370;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:49.173927' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1610  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1610  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001365  Lock_time: 0.001112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585371;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:50.173878' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1611  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1611  Schema:   QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000505  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:22:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585372;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:51.174816' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585373;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:52.174579' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585373;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:22:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000535  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585374;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:53.174293' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:53.174452' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585375;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:54.17398' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001365  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585375;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585376;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585376;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585376;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:55.177252' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585377;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585377;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585377;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:56.177259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585378;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585378;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585378;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:22:57.177111' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:22:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585379;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585379;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002037  Lock_time: 0.001466  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585379;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:22:59.629'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:22:59.629')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:22:59.629')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:23:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585380;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1614  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1614  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585381;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:00.17455' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1615  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000232  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1615  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:23:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:01.174552' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585382;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:01.174452' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001035  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585383;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001277  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585383;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585383;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:02.177651' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585384;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:03.174387' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585385;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585385;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:04.177194' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585386;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:05.174633' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:06.174786' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000554  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585388;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:07.174446' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001609  Lock_time: 0.001091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585388;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585389;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585389;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:08.178444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585390;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1618  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1618  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:10.173799' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1619  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1619  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585392;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:11.174703' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585393;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585394;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:13.174044' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585395;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585395;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:14.174726' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585396;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585396;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585397;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:16.174943' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001303  Lock_time: 0.001108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001468  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585398;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585399;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585399;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:18.174679' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585400;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:19.174467' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585400;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:19.174295' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1622  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1622  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001253  Lock_time: 0.001032  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585401;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001433  Lock_time: 0.000966  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585401;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1623  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1623  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585402;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585402;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:21.175014' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000655  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585403;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585404;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585404;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:23.17464' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000792  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585405;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:24.175262' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000919  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:24.174611' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585406;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:25.174568' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585407;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:26.174228' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001178  Lock_time: 0.001030  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585408;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585408;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:27.173631' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:27.176959' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585409;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585409;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:28.174612' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001098  Lock_time: 0.000872  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585410;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:29.174595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:29.174467' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1626  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1626  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:23:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585411;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:30.173931' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1627  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1627  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:23:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585412;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585412;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:31.173854' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585412;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:31.177266' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585413;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585413;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:32.173816' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585414;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585414;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:33.174661' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001120  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585415;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:34.174005' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585415;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:34.177314' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001215  Lock_time: 0.000852  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585416;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585416;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:35.174003' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585417;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585417;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:36.174838' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:37.173904' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:39.174523' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1630  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1630  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585421;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585421;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1631  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1631  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:23:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000587  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585422;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:41.173936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585422;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:41.177184' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585423;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000753  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585423;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585425;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:44.177127' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:45.173858' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585427;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585428;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001166  Lock_time: 0.001003  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585429;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000846  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585429;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:48.175353' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585430;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1634  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1634  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:23:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1635  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1635  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000234  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:23:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585433;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585434;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585436;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:55.174726' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585436;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:55.174858' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585437;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001166  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585437;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:23:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:57.174741' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:23:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:58.17439' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585439;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:23:59.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:23:59.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:23:59.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:24:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:59.17393' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585440;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:23:59.177178' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1638  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1638  Schema:   QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000627  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.001021  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:00.173785' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1639  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1639  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:24:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585442;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:01.174596' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585443;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585444;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585445;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585446;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:05.174699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585447;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585447;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000678  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585448;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:07.174584' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585448;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:07.174651' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585449;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:09.174699' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1642  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1642  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585451;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585451;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:10.174557' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1643  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1643  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:24:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585452;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585452;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585453;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585453;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:12.176877' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585454;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585454;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:13.174441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585455;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585456;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000821  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:16.173868' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585458;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585459;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585460;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:19.177365' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1646  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1646  Schema:   QC_hit: No
# Query_time: 0.000095  Lock_time: 0.000057  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001236  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585461;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585461;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:20.176942' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1647  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1647  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585462;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:21.174906' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000323  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585462;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585463;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585463;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:22.17493' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585464;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000914  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:24.174131' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000591  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585467;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:26.174923' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585468;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585468;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:27.174742' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585469;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585469;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:28.175063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585470;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:29.174048' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1650  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1650  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585471;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585471;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:30.174432' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1651  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1651  Schema:   QC_hit: No
# Query_time: 0.000116  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:31.173747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585473;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001826  Lock_time: 0.001257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585474;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585475;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:34.174107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585476;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:35.174097' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585477;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:36.174581' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585478;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585479;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585479;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:38.177824' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:39.174702' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585480;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1654  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1654  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:24:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000471  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585481;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:40.174808' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1655  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1655  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585483;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:42.174392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001249  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585484;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585484;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:43.177533' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585485;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585486;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:45.173758' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585487;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585487;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:46.174546' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:47.174917' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:47.174773' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:48.174521' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585489;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:24:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1658  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1658  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:24:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:50.1774' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1659  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1659  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:24:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585492;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:51.174523' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585493;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585493;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:52.174361' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001419  Lock_time: 0.001237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585494;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:53.174016' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001958  Lock_time: 0.001786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585494;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585495;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001178  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:54.173823' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585496;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585496;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:55.177536' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585497;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585497;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:56.173823' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585497;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:56.177638' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585498;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585498;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:57.177492' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:24:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004978  Lock_time: 0.004855  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005269  Lock_time: 0.004892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585499;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002177  Lock_time: 0.001694  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585499;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:24:59.629'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:24:59.629')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:24:59.629')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:25:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585500;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:24:59.177836' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1665  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1665  Schema:   QC_hit: No
# Query_time: 0.000103  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:25:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585501;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585501;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:00.175192' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1666  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1666  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:25:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585502;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585502;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:01.17399' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585502;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:01.177789' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585503;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:03.173788' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585505;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:04.177521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585506;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585507;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:06.174794' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585508;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585509;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:08.177487' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585510;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1669  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1669  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585511;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585511;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:10.175485' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1670  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1670  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000284  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:25:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585512;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:11.174699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585513;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585514;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:13.174461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000929  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585515;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:14.174346' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001151  Lock_time: 0.000910  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:14.174314' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585516;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585516;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:15.173986' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:15.177187' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585517;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585517;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585517;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:16.177599' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585518;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585518;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585518;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:17.177128' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585519;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585519;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:19.174697' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:19.174566' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1673  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1673  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:25:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000550  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585521;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1674  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1674  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585522;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:21.177172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585523;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585523;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:22.175748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585524;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585524;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:23.175948' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585525;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:24.1739' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:24.177017' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585526;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:25.174044' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:25.177537' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585527;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585527;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:26.174324' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585528;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585528;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585529;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:28.175204' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585530;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001148  Lock_time: 0.000975  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:29.17407' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585530;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:29.177182' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1677  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1677  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000971  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:30.174435' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1678  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1678  Schema:   QC_hit: No
# Query_time: 0.000104  Lock_time: 0.000062  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001125  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:31.174045' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585533;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:32.173732' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:32.176998' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001563  Lock_time: 0.001090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585534;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585534;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:33.175102' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585535;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:34.174413' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:34.174483' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585536;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:35.17427' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585537;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585537;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:36.174326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001634  Lock_time: 0.000864  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585538;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585538;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:37.177338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:38.173848' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1681  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1681  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:40.175947' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1682  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1682  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585542;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585542;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:41.1771' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585543;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585543;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:42.173521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585544;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585545;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585545;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:44.173872' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585546;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585546;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:45.174154' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585546;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:45.177513' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001339  Lock_time: 0.001101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585547;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:46.173967' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585548;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585548;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:47.177025' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585549;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:48.174916' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:49.174286' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1685  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1685  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:25:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001305  Lock_time: 0.001070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585551;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001665  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1686  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1686  Schema:   QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000363  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:25:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:51.173841' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585552;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:51.177847' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585553;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585554;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:53.1752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585555;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585555;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:54.173848' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585556;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:55.174901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001058  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585557;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:25:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585558;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:25:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585559;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001621  Lock_time: 0.001194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585559;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:25:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:25:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:25:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:26:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:25:59.174098' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1689  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1689  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585561;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000565  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1690  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1690  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:26:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585562;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:01.17535' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585563;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000853  Lock_time: 0.000728  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:02.173943' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:02.177093' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585564;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:03.174206' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585565;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585565;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:04.173758' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585565;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:04.177207' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585566;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585566;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:05.173864' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:06.1743' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585567;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000875  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585568;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:07.176766' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585569;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:08.174159' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585570;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:09.177142' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1693  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1693  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:26:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1694  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1694  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:26:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:11.173894' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585573;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585574;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585574;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:13.174289' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585575;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:14.177236' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585576;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585576;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:15.177307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585578;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000713  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585578;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:17.177176' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585579;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:18.176958' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585580;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:19.174547' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1697  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1697  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585581;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:20.174597' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1698  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1698  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585582;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585583;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585583;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:22.177246' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585584;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:23.17725' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585585;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:24.173666' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585586;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:25.174412' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585587;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000938  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:27.173614' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001413  Lock_time: 0.001282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585589;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585590;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000606  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585590;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:29.174014' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:29.177309' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1701  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1701  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001134  Lock_time: 0.000913  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001789  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585591;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1702  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1702  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585592;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:31.173828' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585592;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:31.177059' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585593;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:32.174633' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585594;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585595;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585595;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:34.173733' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:34.177177' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:35.173974' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001007  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585596;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585598;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585598;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:37.174761' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001110  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585599;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:38.174495' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585600;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:39.173819' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1705  Schema:   QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000257  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1705  Schema:   QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000278  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585601;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:40.174675' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1706  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1706  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:26:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585602;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:41.174268' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585603;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001910  Lock_time: 0.001634  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:43.174064' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585605;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:44.174731' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585605;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:44.174363' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585606;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:45.173889' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:45.177223' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585607;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585607;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585607;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:46.177239' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585608;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585608;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585609;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:48.174057' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002942  Lock_time: 0.002235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585610;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:49.176937' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1709  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1709  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:26:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585611;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:50.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585611;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1710  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1710  Schema:   QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000254  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:26:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585613;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000907  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:52.17729' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585614;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:53.173748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585615;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585615;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:54.174735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000428  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585616;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:55.174349' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585617;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:56.173727' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585617;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:56.176857' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:26:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585618;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585618;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:26:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585619;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:58.175644' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585619;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:26:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:26:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:26:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:27:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585620;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:26:59.174034' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1713  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1713  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:00.173777' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1714  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1714  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:01.174593' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585622;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:01.174879' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585623;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585623;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:02.174355' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001806  Lock_time: 0.001625  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:03.173776' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585625;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:04.175304' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585626;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585626;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:05.174031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:05.177329' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585627;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585627;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:06.17731' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585628;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:07.173687' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585628;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:07.177006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585629;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585629;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:08.174727' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000342  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585630;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585630;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:09.174435' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1717  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1717  Schema:   QC_hit: No
# Query_time: 0.000099  Lock_time: 0.000059  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585631;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:10.177428' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1718  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1718  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585632;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:11.177094' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585633;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585633;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:12.174886' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585634;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:13.177275' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.001025  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:14.17378' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:14.176957' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585636;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000863  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:15.174587' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585637;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:16.174345' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585638;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585639;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:18.174544' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:19.174571' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1721  Schema:   QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000320  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1721  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585641;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:20.174958' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1722  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1722  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.008709  Lock_time: 0.008513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585642;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:21.173757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:22.174678' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585644;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585645;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585645;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:24.173836' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:24.177137' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585646;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:25.174709' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585647;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585647;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:26.174956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585648;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:27.17457' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585649;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:28.174276' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000678  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585649;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585650;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:29.177052' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1725  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1725  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585651;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585651;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:30.174653' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1726  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1726  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585652;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:31.174208' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585653;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585653;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:32.177261' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585654;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:34.174329' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:35.173678' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:36.174764' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585657;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000526  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585658;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:37.174381' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001069  Lock_time: 0.000811  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585658;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:37.174383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585659;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:38.177412' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585660;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585660;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:39.173924' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000621  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585660;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:39.177115' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1729  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1729  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585661;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:40.174926' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1730  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1730  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:27:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585662;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:41.174355' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585663;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:42.173887' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:43.173877' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585664;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:43.177142' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:44.173665' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585665;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585666;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000367  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585667;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585667;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:46.1874' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585668;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:47.174284' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585669;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001369  Lock_time: 0.001144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585670;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:49.17432' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585670;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:49.174576' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1733  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1733  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585671;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585671;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:50.177693' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1734  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1734  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585671;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:27:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585672;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585672;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585674;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:53.174864' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585675;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001346  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585676;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:27:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585677;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:57.177172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:27:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585679;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001577  Lock_time: 0.000670  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585679;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:27:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:27:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:27:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:28:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585680;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:27:59.173937' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1737  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1737  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585681;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1738  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1738  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585682;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585682;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:01.174623' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585683;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:02.174955' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:02.174774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585684;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000753  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:03.174325' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585685;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585685;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:04.177539' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585686;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:05.177235' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585687;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585689;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000988  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:08.177024' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585690;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585690;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:09.175677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1741  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1741  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:10.174806' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1742  Schema:   QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1742  Schema:   QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:11.174434' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:12.174523' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585693;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585694;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:13.174544' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:13.174568' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585695;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:14.174041' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585695;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585695;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:14.177873' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:15.174442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000853  Lock_time: 0.000672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585696;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:15.174195' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585697;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585697;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:16.177398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585698;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585698;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:17.177267' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585699;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585699;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:18.174316' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585700;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1745  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1745  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585701;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585701;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:20.174423' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1746  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1746  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585702;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585704;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585704;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:23.177146' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585705;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585706;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585707;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585708;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000638  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585708;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:27.173823' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585709;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:28.175463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585709;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:28.175342' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:29.173878' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1749  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585710;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1749  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585710;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:28:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001042  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585711;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:30.174497' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1750  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585711;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1750  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585711;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585712;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585713;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:32.174134' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585713;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:32.174179' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004479  Lock_time: 0.004312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585714;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003940  Lock_time: 0.003791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585714;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:33.173842' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000853  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:34.174722' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000494  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585715;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:34.174757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585716;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585716;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:35.174409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585717;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585717;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:36.174767' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585718;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585718;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:37.17437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585719;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:38.174428' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:39.174' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001024  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585720;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000042  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585720;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:39.177311' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1753  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585720;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1753  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585720;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585721;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001409  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585721;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1754  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585721;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1754  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585721;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585722;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585723;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:42.17622' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585724;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585724;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:43.177156' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585725;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585725;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585725;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:44.177366' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585726;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585726;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:45.174049' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:45.177284' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585727;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585727;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585727;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:46.177325' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585728;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585728;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:47.173653' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585728;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:47.176832' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585729;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000929  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:48.174474' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585730;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1757  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000238  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585730;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1757  Schema:   QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000272  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585730;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585731;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:50.174535' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585731;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:50.174607' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1758  Schema:   QC_hit: No
# Query_time: 0.005898  Lock_time: 0.005824  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585731;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1758  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585731;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:28:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585732;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585732;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:51.173918' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585732;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:51.177146' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585733;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585733;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585734;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:53.174936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001130  Lock_time: 0.000720  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585735;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:28:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585737;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:56.173819' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585738;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:57.174484' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:28:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000656  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585739;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585739;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:28:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:28:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:28:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:29:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001227  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585740;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585740;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:28:59.177063' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1761  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585740;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1761  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585740;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:29:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585741;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1762  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585741;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1762  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585741;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:29:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585742;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:29:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585743;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585743;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:02.174314' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585743;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:02.177084' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585744;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585744;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:29:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:05.177258' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585747;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585747;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:06.173683' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585747;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:06.176825' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585748;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:29:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585749;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:08.17383' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585749;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:08.177077' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585750;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:09.1747' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1765  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585750;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1765  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585750;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001028  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585751;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:10.174674' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585751;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:10.174703' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1766  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585751;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1766  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585751;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:29:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585752;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585752;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:29:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585753;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:12.17571' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585753;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:12.174858' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:13.17369' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001503  Lock_time: 0.001375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585754;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:14.175412' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000489  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585756;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:15.173954' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585756;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:15.177312' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585757;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:16.174062' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585758;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:17.173976' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585758;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:17.177322' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585759;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:18.174302' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585760;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1769  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585760;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1769  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585760;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:29:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002690  Lock_time: 0.002510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585761;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:20.174025' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002697  Lock_time: 0.002528  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:20.174572' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1770  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585761;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1770  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585761;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585762;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:21.177239' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585763;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585763;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:29:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:23.177376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585765;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:24.174767' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585766;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585767;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:26.174541' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001096  Lock_time: 0.000934  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585768;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585769;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001841  Lock_time: 0.001732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585769;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:28.174489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585770;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585770;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1775  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585770;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1775  Schema:   QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585770;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:29:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585771;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1776  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585771;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1776  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585771;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:31.174869' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001445  Lock_time: 0.001023  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:32.173978' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585774;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585776;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:35.174783' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585777;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000705  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585777;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585777;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:36.177335' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585778;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585778;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:37.17763' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585779;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585779;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:38.174156' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:39.17372' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585780;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1779  Schema:   QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000272  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585780;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1779  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585780;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585781;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:40.174898' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:40.174947' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1780  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585781;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1780  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585781;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:41.174831' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001586  Lock_time: 0.001486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585783;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001387  Lock_time: 0.001196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:42.174557' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585784;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:43.174061' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585785;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585785;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:44.182382' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:45.174559' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585786;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585787;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:46.174462' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002201  Lock_time: 0.001754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585788;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:47.177232' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.001021  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585789;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585790;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:49.174795' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1783  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585790;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1783  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585790;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000533  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585791;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1784  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1784  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:29:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585793;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:52.173875' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005655  Lock_time: 0.005329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585794;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:53.173769' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:54.174457' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585796;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585797;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585798;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585798;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:29:57.174669' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:29:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585799;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001051  Lock_time: 0.000564  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585799;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:29:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:29:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:29:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:30:00
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1787  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585800;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1787  Schema:   QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585800;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585801;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585801;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:00.175412' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1788  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1788  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585804;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585804;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:03.175173' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000916  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585805;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585805;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:04.177212' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585806;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585806;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:05.173658' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:05.178441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585807;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585807;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:06.176958' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585808;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585809;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:08.175539' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585809;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:08.176522' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585810;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585810;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:09.174119' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1791  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1791  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:30:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585811;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585811;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:10.174033' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1792  Schema:   QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000501  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1792  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:30:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585812;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:11.174492' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585812;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585813;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585813;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:12.174414' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000643  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585814;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000565  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585814;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585814;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:13.177163' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000853  Lock_time: 0.000648  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585815;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001159  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585815;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001313  Lock_time: 0.001159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:15.174538' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585817;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:16.1744' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585818;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:17.173916' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001503  Lock_time: 0.001208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585819;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:18.173649' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585820;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:19.174548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001143  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:19.174628' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1795  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1795  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585821;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585821;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585821;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:20.177234' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1796  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1796  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:30:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585822;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000750  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585822;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585822;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:21.176913' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585823;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585823;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585824;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:23.174431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585824;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:23.174723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585825;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585825;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:24.177307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585826;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585826;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585827;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:26.174388' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002666  Lock_time: 0.002513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585828;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003080  Lock_time: 0.002588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585828;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585829;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:28.174529' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585830;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000670  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:29.174718' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1799  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1799  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:30.174035' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585831;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:30.177286' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1800  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1800  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:31.173719' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585833;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585833;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585834;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001553  Lock_time: 0.001375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585835;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001783  Lock_time: 0.001351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585835;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585836;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:35.173966' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000930  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585836;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585836;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:35.177952' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585837;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585837;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585838;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585838;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:38.174525' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000988  Lock_time: 0.000700  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:39.173873' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585840;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:39.177129' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1803  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1803  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585841;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001385  Lock_time: 0.001172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585841;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:40.174773' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1804  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1804  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585842;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001072  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585842;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:41.174843' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585843;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585844;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:43.174977' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585845;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585845;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000983  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:45.174557' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585846;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:45.174703' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585847;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:46.174119' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585848;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:47.174856' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585848;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:47.17503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:48.174375' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585849;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:48.174528' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585850;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585850;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:49.174166' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1807  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1807  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585851;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:50.174613' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1808  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1808  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:30:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585852;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585853;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585854;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000705  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585854;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:53.176189' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585855;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:54.174984' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585856;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585856;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:55.17564' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:30:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585857;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585858;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:30:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585859;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585859;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:30:59.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:30:59.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:30:59.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:31:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585860;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585860;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:30:59.175001' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1811  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1811  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585861;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585861;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:00.176047' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1812  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1812  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000777  Lock_time: 0.000651  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585862;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:01.174807' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001209  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585863;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:03.174873' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002716  Lock_time: 0.002537  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:04.174306' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003390  Lock_time: 0.003042  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585865;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000524  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585866;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001266  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585867;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585868;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000354  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585869;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:09.174322' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1815  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1815  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585871;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:10.173871' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585871;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585871;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:10.177377' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1816  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1816  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.001116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585872;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000564  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585872;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:11.173856' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585873;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585875;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:14.17397' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:14.177228' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585876;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:15.174031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:15.177259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585877;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:17.173511' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585879;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585880;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585880;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585880;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:19.177299' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1819  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1819  Schema:   QC_hit: No
# Query_time: 0.000099  Lock_time: 0.000059  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:31:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585881;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001218  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585881;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:20.177454' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1820  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1820  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:31:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000816  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585882;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001306  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585882;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585882;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:21.177349' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001069  Lock_time: 0.000897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585883;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:22.174016' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585884;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:23.174899' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585885;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585885;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:24.174441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585886;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001196  Lock_time: 0.001051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585886;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:25.174767' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585887;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000790  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585887;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:26.174931' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585888;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:27.174874' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585888;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:27.17515' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585889;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585889;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:28.174666' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585890;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1824  Schema:   QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000390  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1824  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000272  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:31:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000651  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585891;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1825  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1825  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585892;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585893;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585895;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:34.174738' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585896;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585896;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585897;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:36.173859' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000943  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:37.174054' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:38.173938' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585899;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:38.177451' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585900;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000705  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:39.177082' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1829  Schema:   QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000262  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1829  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:31:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585901;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585901;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1830  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1830  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:31:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585902;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:41.174185' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585903;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585903;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:42.176921' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585904;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585904;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:43.174757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585905;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585906;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001171  Lock_time: 0.001016  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:45.173999' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:45.177457' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585907;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001932  Lock_time: 0.001606  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585907;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585908;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:48.173814' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585910;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1833  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1833  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001624  Lock_time: 0.001374  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585911;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:50.177357' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1834  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1834  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:31:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001918  Lock_time: 0.001058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:51.173807' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585913;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:52.174684' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585914;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:53.17433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001187  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585914;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:31:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585915;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:54.173928' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585916;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:55.174876' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000666  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585917;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585917;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:56.174379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:57.174408' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000981  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:57.174348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:31:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585919;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:58.173877' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:31:58.177041' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001467  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585919;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:31:59.631'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:31:59.631')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:31:59.631')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:32:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585920;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585920;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1837  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1837  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585921;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:00.174743' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1838  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1838  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585922;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:01.174202' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585923;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000441  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585923;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:02.173972' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585924;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585925;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:04.17404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:04.17738' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585926;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585927;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:06.174288' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:06.174366' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585928;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585928;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:07.174052' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585928;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:07.177453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585929;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585929;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:08.174086' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:08.177347' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585930;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:09.173851' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585930;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1841  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1841  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:10.17473' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1842  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1842  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001396  Lock_time: 0.001225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:11.174639' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585933;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585933;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:12.177157' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585934;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585935;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:14.174648' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585935;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:14.174709' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001671  Lock_time: 0.001498  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585936;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585936;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:15.174373' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585937;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004587  Lock_time: 0.004416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:16.173983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585937;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:16.17725' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585938;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585938;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:17.176936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585939;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585939;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:18.174539' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585940;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:19.174338' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1845  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1845  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:32:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000902  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585941;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001507  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585941;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1846  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1846  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000313  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:21.174693' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585943;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000585  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585943;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:22.174305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585944;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:23.174068' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585946;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000831  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585947;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:26.173835' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002738  Lock_time: 0.002352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585948;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:27.178063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585949;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:28.177155' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585950;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1849  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1849  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585951;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:30.174113' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:30.177928' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1850  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1850  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:32:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:32.174542' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.001001  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585954;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:33.173973' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585955;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585956;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:35.17475' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001020  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585957;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585957;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:36.174371' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585958;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:37.175295' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001373  Lock_time: 0.000966  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585958;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1853  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1853  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:32:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:40.174454' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1854  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1854  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585962;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585962;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:41.17717' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585963;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585963;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:42.176901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585964;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:43.174659' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585964;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:43.17459' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585965;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:44.17464' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001491  Lock_time: 0.001140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585965;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585966;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001096  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:45.174085' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585966;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:45.177204' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585967;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585967;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:46.174132' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585968;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585969;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585969;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:48.175462' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:49.174127' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000751  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:49.174306' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1857  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1857  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:32:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585971;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:50.173868' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585971;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:50.17705' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1858  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1858  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:32:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585972;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000750  Lock_time: 0.000623  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585972;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:51.17471' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585973;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585975;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585975;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585976;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:55.177369' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585977;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:56.173906' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585977;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001029  Lock_time: 0.000934  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585977;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:56.176983' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:32:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585978;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585978;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:32:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585979;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621585979;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:32:59.631'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:32:59.631')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:32:59.631')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:33:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000535  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621585980;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:59.174128' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000559  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585980;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:32:59.174388' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1861  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1861  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585981;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585981;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:00.173609' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1862  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1862  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585982;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585982;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585983;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:02.175295' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585984;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585985;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:04.174276' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585985;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585986;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001207  Lock_time: 0.000919  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:05.173738' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585986;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:05.176916' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585987;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001386  Lock_time: 0.000969  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585987;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585988;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585988;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:07.174635' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585989;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585989;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:08.173953' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585990;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:09.173854' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585990;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:09.177132' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1865  Schema:   QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000253  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1865  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585991;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:10.173558' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585991;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:10.17705' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1866  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621585991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1866  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621585991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:11.174914' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585992;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:11.17473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:12.175188' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:13.177128' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585995;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585995;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:14.175405' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585996;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585997;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:16.174538' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:16.174143' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585998;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585998;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585999;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:18.173906' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001154  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621585999;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:19.173983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000957  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586000;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1869  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000250  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1869  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:33:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:20.174969' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000879  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586001;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:20.175077' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1870  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1870  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:21.174751' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000968  Lock_time: 0.000490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586002;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586003;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:22.17413' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001061  Lock_time: 0.000855  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586004;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586004;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000765  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586005;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:24.173968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586006;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:25.177295' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:26.173738' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586007;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:26.177677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586008;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586008;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586009;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586009;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:28.177109' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586010;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:29.176842' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1873  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1873  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586011;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1874  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1874  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586012;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001406  Lock_time: 0.000906  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586012;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:31.177468' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586013;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000735  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:32.17394' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586014;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000988  Lock_time: 0.000808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:33.173818' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586015;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000912  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586015;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:34.174603' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:35.174743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586017;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001235  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:36.174677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586018;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:37.17438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:38.173731' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586020;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1877  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1877  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000683  Lock_time: 0.000544  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001262  Lock_time: 0.000865  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586021;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1878  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1878  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586022;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:41.177194' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586023;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586023;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:42.176968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586024;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:33:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:44.17451' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586025;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:44.174492' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:45.174158' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001437  Lock_time: 0.000957  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586026;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586026;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:45.177813' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586027;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000629  Lock_time: 0.000519  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:46.17396' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:46.177131' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586028;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:47.174162' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586028;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:47.178519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586029;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586029;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001666  Lock_time: 0.001421  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586029;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:48.177137' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586030;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586030;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:49.173798' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586030;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:49.177382' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1881  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1881  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586031;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:50.174718' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1882  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1882  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:33:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586032;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:51.174597' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586033;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:52.177203' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:53.17376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586035;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:54.174683' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586036;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:55.174529' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586037;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:56.177696' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000683  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586038;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:33:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586039;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001713  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586039;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:33:59.631'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:33:59.631')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:33:59.631')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:34:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586040;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:33:59.174603' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1887  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000254  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1887  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586041;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000437  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586041;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:00.174452' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1888  Schema:   QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000298  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1888  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:01.174964' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586043;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:02.174552' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:03.174092' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586044;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:03.177461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586045;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:04.17404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586046;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001254  Lock_time: 0.001057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586046;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:05.17395' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586047;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586047;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:06.17722' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586048;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586049;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:08.174308' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:09.174075' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000652  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586050;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:09.177283' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1891  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1891  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001273  Lock_time: 0.000851  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586051;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586051;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:10.174064' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1892  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1892  Schema:   QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000663  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586052;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586053;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001051  Lock_time: 0.000840  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586053;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:12.174419' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586054;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:13.174498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586055;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586055;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:14.173939' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586056;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586056;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586056;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:15.177065' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:16.174691' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586059;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:18.174536' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586060;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586060;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:19.177319' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1895  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1895  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586061;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:20.177361' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1896  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1896  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586062;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586063;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:22.173867' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586063;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:22.177281' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586064;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586065;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:24.175075' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586066;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:25.174788' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586067;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:26.174904' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586068;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586068;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:28.17418' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001111  Lock_time: 0.000862  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586070;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1899  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1899  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.007053  Lock_time: 0.006880  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586071;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586071;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:30.177138' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1900  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1900  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586072;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:31.177172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:32.173656' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586074;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586075;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000918  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586075;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:34.176997' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586076;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586077;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586078;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586079;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586080;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1903  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1903  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586081;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1904  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1904  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586082;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:41.173965' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:42.174431' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:43.174486' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586084;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:43.174658' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586085;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586085;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:44.177222' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000891  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586086;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586086;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:45.173704' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:46.174814' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001621  Lock_time: 0.001189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586087;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586088;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586089;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:48.174569' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000916  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586090;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586090;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:49.17436' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1907  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1907  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:34:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:50.173956' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586091;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:50.17725' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1908  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1908  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:34:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586092;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586093;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:52.177007' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586094;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586094;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586095;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:54.174434' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586096;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001306  Lock_time: 0.000883  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586096;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:34:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586097;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:34:57.17725' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:34:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586099;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586099;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:34:59.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:34:59.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:34:59.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:35:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1911  Schema:   QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1911  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:00.174169' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000587  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586101;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:00.17777' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1912  Schema:   QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000567  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1912  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:35:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586102;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586102;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:01.175133' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586103;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586103;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:02.177324' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001201  Lock_time: 0.001049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586104;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:03.177042' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:04.174621' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586106;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586108;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:07.174937' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586109;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586110;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:09.174424' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001074  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586110;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1915  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1915  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:35:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586111;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:10.173914' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586111;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:10.17746' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1916  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1916  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586112;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586112;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:11.173869' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:11.177234' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586113;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586113;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:12.177164' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586114;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586114;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000612  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:13.176891' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586115;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:14.174665' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586116;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:16.174718' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000417  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586118;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:17.174358' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000954  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586118;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586119;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001151  Lock_time: 0.001010  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586119;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:18.173863' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:18.177353' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586120;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586120;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:19.174044' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:19.177335' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1919  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1919  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586121;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:20.177376' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1920  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1920  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586122;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:21.177064' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001386  Lock_time: 0.001010  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586123;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586125;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:24.175406' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586126;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:25.173717' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586127;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:27.177748' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586129;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586130;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1923  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1923  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586131;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:30.174904' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:30.175246' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1924  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1924  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586132;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586132;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586133;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:32.174603' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586134;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586134;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:35.175014' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000532  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:36.174425' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001728  Lock_time: 0.001201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586137;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586138;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:37.177107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586139;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586140;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000753  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586140;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:39.176872' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1927  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1927  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000299  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586141;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1928  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1928  Schema:   QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000289  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:35:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586142;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586142;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:41.174553' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586143;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586144;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:43.174029' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000951  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586144;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:43.177163' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586145;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:44.173888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000502  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586146;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:45.173598' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586146;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:45.176812' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586147;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000984  Lock_time: 0.000852  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:46.174912' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586148;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586148;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:47.174453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586149;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:48.174334' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:49.174002' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586150;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:49.177125' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1931  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1931  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:35:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001505  Lock_time: 0.001273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586151;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1932  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1932  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:35:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586152;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:35:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586153;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:52.174259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586154;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:53.174195' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:54.17409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586156;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586156;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:55.173965' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586157;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:56.173723' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586157;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:56.177606' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000846  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586158;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:57.17405' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586158;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:57.177302' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:35:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586159;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:58.174145' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001381  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586159;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586159;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:35:59.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:35:59.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:35:59.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:36:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586160;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:35:59.176997' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1935  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1935  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:36:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586161;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1936  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1936  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:36:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586162;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:01.174127' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586162;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:01.177288' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586163;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586164;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:03.174766' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586164;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586165;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:04.174069' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586166;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:05.177358' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586168;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:07.175027' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586169;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:08.174857' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586170;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:09.174509' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001259  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586170;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1939  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1939  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001743  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586171;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1940  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1940  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586172;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586173;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586174;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:13.174717' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001204  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:14.174209' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586176;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586176;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586176;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:15.177036' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586177;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586177;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:17.17456' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:17.174329' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586179;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:18.173839' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001044  Lock_time: 0.000880  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586180;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1943  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1943  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:36:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000952  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586181;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:20.173585' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1944  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1944  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000773  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586182;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:21.174395' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586183;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:22.177419' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586184;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586184;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:23.173941' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586185;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:24.174201' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586186;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:26.177611' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586188;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:27.17441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586188;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586189;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:28.173857' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:29.174939' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586190;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:29.174848' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1947  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1947  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000954  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586191;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001408  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586191;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1948  Schema:   QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1948  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:36:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586192;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586193;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001114  Lock_time: 0.000964  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586193;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:32.174169' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:32.177421' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586194;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586194;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586195;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:34.174389' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:35.174536' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586197;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:36.174408' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001357  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586197;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000855  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586198;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:37.174276' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:37.174326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586199;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586199;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:38.177113' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586200;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586200;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1951  Schema:   QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000331  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1951  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:36:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586201;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1952  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1952  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:41.174926' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586203;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586203;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:42.17434' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586204;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586204;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:43.177243' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586205;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586206;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586207;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586208;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:47.173978' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586209;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:48.173772' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586210;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586210;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:49.175028' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1955  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1955  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586211;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1956  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1956  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:36:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000662  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586212;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586213;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:52.17771' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000484  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586214;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:53.17456' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586215;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000731  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586215;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586216;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586216;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:55.174991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:36:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586217;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001498  Lock_time: 0.000970  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586217;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:36:59
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002381  Lock_time: 0.001643  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586219;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:36:59.633'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:36:59.633')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:36:59.633')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:37:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586220;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:59.17469' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586220;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:36:59.174941' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1959  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1959  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586221;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:00.174655' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:00.174687' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1960  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1960  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586222;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586222;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586223;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:02.174499' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000768  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586224;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000873  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:03.174294' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000947  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586225;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:04.173994' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586225;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:04.17753' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000736  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586226;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:37:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586227;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586228;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586229;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586230;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:09.17451' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586230;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1963  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1963  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1964  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1964  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:37:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586233;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586233;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:12.174811' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586234;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:13.174104' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586234;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586234;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:13.17737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000625  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586235;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586235;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:14.173947' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586236;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:15.176829' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586237;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:37:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586238;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:17.174003' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586239;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:18.174038' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000700  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586240;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:19.17379' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1967  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1967  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:20.174872' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1968  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1968  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586242;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586242;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:21.17461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:22.174404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586244;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586244;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:23.174148' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586244;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:23.177238' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586245;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586245;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:24.17376' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586245;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:24.17739' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586246;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586246;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:25.174422' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001638  Lock_time: 0.001483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586247;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:26.174085' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000542  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586248;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:27.174438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586249;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.006824  Lock_time: 0.006593  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:28.174887' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:30
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1971  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1971  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:37:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586251;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:30.175099' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:30.174737' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1972  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1972  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:37:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586252;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586253;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:32.174389' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586254;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586254;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586254;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:33.177046' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:34.175096' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586255;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:34.174996' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000440  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:35.174617' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001159  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586256;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:37:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000989  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:36.174534' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586258;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586258;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:37.174352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:38.177024' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:38.173737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586260;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:39.174879' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586260;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:39.174877' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1975  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1975  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586261;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586261;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:40.174624' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1976  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1976  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:37:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:41.174633' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586263;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586263;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:42.17737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586264;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:43.17379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586265;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:44.174086' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000777  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:44.177369' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586266;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586266;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:45.177082' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586267;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586267;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:46.174641' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:47.174012' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586268;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:47.177278' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586269;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:48.173953' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586269;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:48.17747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586270;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:49.173796' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586270;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:49.17694' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1982  Schema:   QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1982  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:37:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586271;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:50.174621' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1983  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1983  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:37:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:51.174223' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586274;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:53.177252' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586275;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:54.173667' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586276;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:55.174858' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586276;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:55.17519' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001334  Lock_time: 0.001139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586277;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:56.174502' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002498  Lock_time: 0.001981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586277;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:37:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000617  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586278;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586278;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:57.174472' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:37:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586279;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586279;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:58.177253' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586279;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:37:59.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:37:59.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:37:59.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:38:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586280;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586280;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:37:59.17727' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1986  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1986  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586281;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000487  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586281;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:00.176783' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1987  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1987  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586282;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586282;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:01.174794' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586283;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586284;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:03.17478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586285;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:04.174321' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000775  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586285;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:04.174128' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586286;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586286;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:05.173778' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002069  Lock_time: 0.001845  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586287;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:06.174651' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:07.385913' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586289;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586290;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:09.174386' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1991  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1991  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001255  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586291;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1992  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1992  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586292;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:12.174658' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001308  Lock_time: 0.001102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586295;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586295;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:14.174318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586296;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586296;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:15.176966' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586297;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586297;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:16.174637' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586298;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000742  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586299;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1998  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1998  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:21
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2000  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2000  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586302;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586303;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:22.175301' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:22.174762' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:23.174069' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001329  Lock_time: 0.000855  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586304;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000583  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586305;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:24.174827' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586306;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586306;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:25.174856' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586307;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:27.174227' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000879  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586309;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:28.173693' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586310;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000998  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586310;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:29.174023' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2009  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2009  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001454  Lock_time: 0.001279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:30.174612' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2010  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2010  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586312;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001051  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586312;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:31.174187' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:31.177476' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586313;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586313;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:32.174085' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:32.177576' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586314;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586314;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586318;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:37.177078' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586319;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:38.174816' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:39.174422' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586320;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:39.174322' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2013  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2013  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001111  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586321;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001780  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586321;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2014  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2014  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:38:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586322;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586323;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:42.174402' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586324;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005965  Lock_time: 0.005718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586324;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:43.174029' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586325;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586325;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586325;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:44.176998' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586326;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586326;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:38:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586327;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586327;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:46.174356' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001080  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586328;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586328;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:47.178794' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586329;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586330;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:49.174467' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2020  Schema:   QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2020  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001321  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586331;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001632  Lock_time: 0.000983  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586331;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2021  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2021  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:38:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:51.177338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586333;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586334;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.125.97]
# Thread_id: 1242  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002354  Lock_time: 0.001553  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586334;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:38:54.251'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:38:54.251')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  'afe611e7-ba07-11eb-bbcc-4e2b094b3d0e'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:38:54.251')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:38:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586335;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586336;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001079  Lock_time: 0.000895  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586337;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586337;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:56.177383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586338;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:57.177282' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:38:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586339;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001562  Lock_time: 0.001210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586339;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:38:59.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:38:59.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:38:59.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:39:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586340;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:38:59.174721' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2025  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2025  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586341;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:00.17484' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2026  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000226  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2026  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:39:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586342;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001236  Lock_time: 0.000868  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586342;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586343;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586343;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:02.174451' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586344;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586344;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:03.173867' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:03.177088' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586345;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586345;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586346;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586346;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:05.173777' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000983  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:05.177038' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586347;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586347;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:06.174761' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:07.1743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586349;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586349;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:08.176979' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000815  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586350;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2030  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2030  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:10.174837' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586351;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2033  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2033  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586352;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:11.174756' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586353;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:12.174378' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:12.175426' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586354;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586354;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:13.174655' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000456  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586355;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:14.17454' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001661  Lock_time: 0.001139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586355;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000757  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586356;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586357;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586358;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:17.177071' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586359;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586360;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2038  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2038  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:39:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000783  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586361;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:20.174826' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:20.174711' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2039  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2039  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586362;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586362;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586363;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:22.174308' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586364;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:23.173746' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.000737  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586364;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:23.177436' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586365;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000807  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586365;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:24.173842' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:24.177291' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586366;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:25.17382' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586366;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:25.177716' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586367;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586367;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:26.174568' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586368;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:27.174418' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:27.174552' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000729  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586369;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:28.173919' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586370;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:29.177281' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2043  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2043  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586371;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2044  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2044  Schema:   QC_hit: No
# Query_time: 0.000095  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:39:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000702  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586372;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000370  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586372;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:31.174992' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586373;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:32.17458' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:33.175052' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:34.174693' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000534  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586375;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586376;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586377;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:36.173968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001021  Lock_time: 0.000840  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586378;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586378;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:37.177085' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586379;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:38.17489' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:38.174898' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000496  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586380;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001110  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586380;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2047  Schema:   QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000513  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2047  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586381;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2048  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2048  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:41.174062' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586383;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:42.173942' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:43.174804' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000308  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586385;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:44.174258' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001062  Lock_time: 0.000524  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586385;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586386;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586386;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:45.177177' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:46.174862' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000611  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586387;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586388;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:47.177121' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000911  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586389;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:48.173797' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000481  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586390;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:49.174896' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2053  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2053  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:39:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586391;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:50.174388' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2054  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2054  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:39:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586392;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586392;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:51.174223' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:52.1737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586394;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:53.175114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586394;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:53.175063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586395;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586395;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:54.173554' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000710  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586396;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:55.17462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:55.175301' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001370  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586397;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:39:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586398;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:39:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586399;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:58.174406' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.27.25]
# Thread_id: 1297  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1621586399;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2021-05-21 08:39:59.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2021-05-21 08:39:59.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '0285a609-ba08-11eb-bff0-ce0808899086'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2021-05-21 08:39:59.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 210521  8:40:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
use vid_openecomp_epsdk;
SET timestamp=1621586400;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:59.173808' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001113  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586400;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586400;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:39:59.177077' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2057  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2057  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586401;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586401;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586401;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:00.17695' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2058  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2058  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586402;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:01.174503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586403;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:02.174139' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001164  Lock_time: 0.000709  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586404;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002044  Lock_time: 0.001683  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586405;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586406;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586407;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:06.174321' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586408;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586409;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:08.17415' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:09.174084' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2061  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2061  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:40:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586411;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2062  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2062  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:40:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586412;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586412;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586413;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:12.174675' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586414;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:13.174489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586415;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586416;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:15.174703' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586417;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:16.174067' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586418;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000679  Lock_time: 0.000546  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586418;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:17.174697' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586419;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:18.175823' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:18.17503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586420;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:19.174461' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:19.174469' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2065  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2065  Schema:   QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586421;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:20.174023' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2066  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2066  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586422;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586422;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:21.174379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586423;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:22.174632' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.001103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:23.174153' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586424;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:23.177556' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586425;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001776  Lock_time: 0.001469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:24.174074' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586425;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:24.177221' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586426;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:25.173812' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586427;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586427;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:26.174213' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586428;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:27.173997' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586428;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:27.177888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586429;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001190  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586430;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2071  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2071  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:40:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001742  Lock_time: 0.001223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586431;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001180  Lock_time: 0.000851  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586431;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:30.174577' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2072  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2072  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586432;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586432;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:32.174105' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002891  Lock_time: 0.002700  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586434;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:33.173989' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000456  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586435;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586436;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586437;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000491  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586438;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:37.174556' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:37.174926' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586439;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000528  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586439;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:38.174393' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:39.174135' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000749  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586440;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:39.175241' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2075  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2075  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586441;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586441;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001130  Lock_time: 0.000988  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586441;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:40.177076' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2076  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2076  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:40:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586442;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586442;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586443;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:42.174491' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586444;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586444;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586445;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:44.173972' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586446;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586446;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:45.173736' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586447;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:46.174722' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586447;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:46.174597' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001488  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586448;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586448;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:47.174308' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586449;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586449;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:48.177201' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586450;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586450;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:49.177131' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2080  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2080  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:40:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001345  Lock_time: 0.001199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586451;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:50.17462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001328  Lock_time: 0.001185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:50.17464' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2081  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2081  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000226  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:40:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586452;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586452;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:51.174423' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586453;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:52.174071' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586454;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:53.174103' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586455;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001037  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586456;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586456;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:55.177035' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:56.174565' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001391  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586457;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:40:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586458;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586458;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:40:57.174511' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:40:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586459;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586460;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2085  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2085  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:41:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586461;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2086  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2086  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586462;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:01.174361' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586462;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:01.174502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586463;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586464;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586464;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:03.174744' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:04.17433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586465;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586466;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586467;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.001240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:06.174942' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586468;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586469;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586470;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2090  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2090  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586471;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586471;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:10.174705' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2091  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2091  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586472;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:11.174292' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001066  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586472;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586473;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586473;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586473;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:12.177174' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586474;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586474;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586474;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:13.176988' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586475;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586476;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586478;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:17.174059' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586479;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:18.173725' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000593  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586480;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:19.174125' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:19.17734' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2094  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2094  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:20.177237' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2095  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2095  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586482;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:21.173776' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586483;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:22.174824' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586484;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:23.174406' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586485;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586486;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:25.174903' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586486;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:25.174947' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586487;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:26.174639' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586487;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586488;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:28.173753' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:28.176992' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586490;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:29.175028' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2098  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2098  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:41:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:30.174338' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586491;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2099  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2099  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:41:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586492;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586492;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:31.174005' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:31.177147' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586493;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586493;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:32.173609' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586494;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586494;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:33.174788' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:34.174305' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001890  Lock_time: 0.001485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586495;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586496;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:35.174479' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001056  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586496;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:37.175013' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586499;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:38.173916' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586500;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586500;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:39.173758' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586500;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:39.177037' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2102  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2102  Schema:   QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000255  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586501;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:40.174777' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.007279  Lock_time: 0.006801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586501;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2103  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2103  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:41:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586502;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586502;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586503;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:42.174791' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000403  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:43.174462' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001154  Lock_time: 0.001007  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586504;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586505;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586505;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:44.177192' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586506;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:45.173995' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:45.177429' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586507;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:46.174841' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586508;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:47.174404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586510;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2106  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2106  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:41:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.000812  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586511;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2107  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2107  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:41:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586512;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586512;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:51.174708' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586513;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.009306  Lock_time: 0.009059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:52.175502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586515;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:54.173798' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586516;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:55.174516' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586517;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:41:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001043  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586518;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:57.17382' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:41:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000906  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586519;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:58.174529' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001013  Lock_time: 0.000849  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:59.174145' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:41:59.177428' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2110  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2110  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:00.173784' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586521;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:00.177076' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2111  Schema:   QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2111  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586522;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:01.17456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586523;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586523;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:02.177326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586524;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:03.173868' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001147  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586524;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:03.177147' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586525;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:04.173618' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:04.176837' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000484  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:05.174439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000613  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586526;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586527;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:06.177172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586528;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586529;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:08.174642' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586529;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586530;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:09.174167' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2114  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2114  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:42:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586531;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586531;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:10.174024' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2115  Schema:   QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000436  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2115  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001031  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:11.173965' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586533;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:12.17701' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586534;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586535;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:14.175052' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001074  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001305  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586536;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000898  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586537;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:16.174472' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000621  Lock_time: 0.000461  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586538;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586538;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586539;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:18.174513' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:18.174408' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586540;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586540;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:19.174218' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2118  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2118  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:42:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:20.174392' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586541;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:20.174909' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2119  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2119  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001322  Lock_time: 0.001116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586542;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001734  Lock_time: 0.001136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586542;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586542;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:21.177482' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001468  Lock_time: 0.001285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586543;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:22.174442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002158  Lock_time: 0.001688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586543;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:23.173957' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586545;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586545;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:24.176991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586546;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:25.174336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586546;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:25.174567' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586547;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001437  Lock_time: 0.001165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:27.173707' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001519  Lock_time: 0.001354  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586549;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:28.174435' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.000981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:28.174493' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586550;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000765  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586550;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:29.173984' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:29.177309' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2122  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2122  Schema:   QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:30.176968' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2123  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2123  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586552;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:31.17455' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586553;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:32.174645' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586553;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:32.174307' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000500  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586554;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586554;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000660  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586555;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:34.173822' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586556;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:35.173659' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586557;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:36.175224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586557;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586558;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:37.173615' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:37.176946' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586559;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586560;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2126  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2126  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2127  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2127  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586562;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000946  Lock_time: 0.000773  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:42.173979' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:43.173796' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:43.177153' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586565;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586566;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:46.174469' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:46.174016' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586568;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586568;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:47.173916' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:47.177089' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586569;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586569;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:48.173983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586569;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:48.177036' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:49.174641' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001175  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586570;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2130  Schema:   QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000478  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2130  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586571;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586571;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:50.174712' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2131  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2131  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:42:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586572;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586573;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586574;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:53.173918' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586575;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:54.174721' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:55.174758' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000664  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586576;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000998  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:42:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586578;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:42:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586579;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586580;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.000953  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:42:59.174505' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2137  Schema:   QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000238  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2137  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001339  Lock_time: 0.000898  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586581;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:00.175824' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2138  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2138  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586582;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586582;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:01.174277' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586583;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:02.174992' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:02.174294' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586584;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:03.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586584;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586585;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:04.174393' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586586;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:05.174514' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000974  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586586;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586587;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:06.17483' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586587;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586588;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586588;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:07.174476' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586589;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586589;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:08.175002' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586590;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:09.17506' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2143  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2143  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586591;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:10.175526' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2144  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2144  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586592;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586593;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002174  Lock_time: 0.002004  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:12.174673' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000878  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586594;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:13.174573' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:14.174676' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:15.174761' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586596;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.007058  Lock_time: 0.006897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586597;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586598;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:17.176433' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586599;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:18.174699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:19.17518' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2150  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2150  Schema:   QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.000993  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586601;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001645  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586601;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2151  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2151  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001005  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:21.173665' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586603;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586604;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:23.174201' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586605;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586606;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:25.174805' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000633  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586607;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000623  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586607;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:28.175006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000742  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586610;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586610;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:29.17733' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2155  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2155  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:43:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586611;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000883  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586611;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:30.174179' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2156  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2156  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:43:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586612;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:32.174924' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586613;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:32.174699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001179  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586614;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001574  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586614;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586615;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:34.174605' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000779  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586616;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:35.174402' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586618;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001411  Lock_time: 0.001180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:37.176932' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586619;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:38.175063' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:39.174996' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586620;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:39.174925' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2159  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2159  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001406  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586621;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2160  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2160  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586622;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001014  Lock_time: 0.000832  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:41.174518' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586623;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:42.174118' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:42.177193' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586624;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586625;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:44.174343' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001385  Lock_time: 0.001151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586626;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:45.176979' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:46.174497' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586627;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:46.174514' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:47.174106' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586628;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:47.180047' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586629;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586630;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:49.174516' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2167  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2167  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:43:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000902  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586631;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:50.173849' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2168  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2168  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:43:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586633;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:52.174879' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:53.173899' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001258  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586634;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000840  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:54.173711' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000729  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:55.174684' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586637;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:56.174345' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001069  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586637;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:43:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586638;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:57.174277' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:43:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586639;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000544  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586639;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:58.173713' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586640;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:43:59.17476' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2171  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2171  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586641;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2172  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2172  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:44:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586642;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586643;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586643;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:02.177274' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586644;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586644;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:03.176954' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:04.175064' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:05.174873' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586646;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:05.174926' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:06.174577' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000944  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586647;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586648;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:07.174939' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:07.175108' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000585  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586649;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586649;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:08.176177' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2176  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2176  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586651;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586651;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:10.175053' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2177  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2177  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586652;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:11.174619' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:12.174202' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001142  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586654;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001409  Lock_time: 0.001028  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586654;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000953  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:14.173655' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:15.174885' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:16.174424' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000745  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:16.174366' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000342  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586658;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586658;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586658;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:17.177313' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586659;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586659;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:18.17381' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:18.177037' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586660;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586660;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:19.174587' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2181  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2181  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000384  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586661;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:20.174635' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2182  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2182  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:44:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586662;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586662;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586662;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:21.177373' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586663;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586663;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586665;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586665;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:24.174683' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586666;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:26.173701' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586668;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:27.174595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586668;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586669;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:28.174393' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586670;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2185  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2185  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586671;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2186  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2186  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586671;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:44:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586672;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:31.17528' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586673;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:32.174502' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000983  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586674;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586674;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:33.174138' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586677;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586678;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000530  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:37.176949' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002221  Lock_time: 0.001810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586679;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000964  Lock_time: 0.000425  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586680;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2189  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2189  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:44:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586681;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:40.1771' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2190  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2190  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586682;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:41.175565' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586683;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:42.174598' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:42.17453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000735  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586684;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:43.174066' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586684;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:43.177416' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586685;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000864  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586685;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:44.173891' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586685;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:44.177179' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586686;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:45.174352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586687;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:46.174793' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586688;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000792  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586688;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:47.174408' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586689;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586689;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:48.177278' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586690;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586690;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:49.180353' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2193  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2193  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:44:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586691;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:50.173891' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2194  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2194  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:44:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586692;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:52.174575' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001051  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586694;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:53.173674' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586695;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:54.174584' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000653  Lock_time: 0.000547  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586696;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:55.174371' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:55.174436' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586697;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:44:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586698;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:57.176841' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:44:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586699;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586700;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:44:59.173938' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2197  Schema:   QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000535  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2197  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586701;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586701;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:00.174639' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2198  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2198  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:45:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586702;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:01.174355' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000881  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586703;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:02.173848' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586703;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:02.177208' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586704;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586704;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:03.176929' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586705;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586705;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586706;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:05.174888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586707;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.000908  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586707;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586708;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586708;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:07.177209' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586709;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586709;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:08.174389' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586710;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586710;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:09.177327' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2201  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586710;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2201  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586710;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586711;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001476  Lock_time: 0.001025  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586711;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2202  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586711;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2202  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586711;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586714;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586714;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:13.174714' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:14.173909' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002097  Lock_time: 0.000941  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586715;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586715;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:14.177069' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586716;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586716;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:15.174652' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586717;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:16.177328' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586718;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000841  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586718;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:17.177105' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586719;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586720;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:19.174634' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2205  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586720;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2205  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586720;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001472  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586721;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2206  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586721;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2206  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586721;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:45:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586722;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586722;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586723;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586723;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586723;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:22.177039' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586724;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:23.174626' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:24.174611' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586725;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:24.174408' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586726;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001293  Lock_time: 0.000941  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586726;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:25.177199' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586727;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:26.173707' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001358  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586727;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586728;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000682  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586729;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586729;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586730;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586730;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:29.177277' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2209  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586730;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2209  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586730;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:45:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586731;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:30.173762' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2210  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586731;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2210  Schema:   QC_hit: No
# Query_time: 0.000110  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586731;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:45:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586732;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:31.174061' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586733;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586734;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586735;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586735;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:34.174735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586736;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:35.174564' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586737;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000678  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586737;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:36.174219' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586738;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:37.173657' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586739;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586740;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586740;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:39.174169' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2213  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586740;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2213  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586740;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586741;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586741;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:40.173783' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:40.176968' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2214  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586741;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2214  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586741;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586742;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:41.174891' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001221  Lock_time: 0.000707  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586742;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586743;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586743;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586744;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:43.174518' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:44.174264' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586745;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:44.174371' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586746;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586746;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:45.173718' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:45.176833' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586747;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586747;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:46.174867' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586748;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586748;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:47.174692' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001225  Lock_time: 0.001027  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586749;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000418  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586749;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:48.174547' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:49.174287' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2217  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586750;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2217  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586750;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586751;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:50.176997' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2218  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586751;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2218  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586751;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:45:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586752;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:45:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586753;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000629  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586754;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586754;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:53.177153' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586755;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:54.173586' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586755;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:54.176921' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586756;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:55.174632' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:56.174466' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586757;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:56.174637' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586758;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586758;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:57.174191' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:45:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000910  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586759;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:58.17385' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:45:58.17715' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586760;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2221  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586760;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2221  Schema:   QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000381  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586760;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586761;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001394  Lock_time: 0.001241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:00.17515' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2222  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586761;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2222  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586761;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586762;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:01.174678' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:02.174503' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:02.174652' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586764;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:03.17438' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:03.174443' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001207  Lock_time: 0.001089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586765;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:04.174306' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001079  Lock_time: 0.000917  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586766;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001314  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586766;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:05.177588' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586767;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586767;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:06.17391' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:06.177437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000529  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586768;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000954  Lock_time: 0.000571  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586768;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586769;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586770;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:09.174702' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2225  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586770;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2225  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586770;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586771;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:10.174428' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586771;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:10.174973' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2226  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586771;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2226  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586771;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586772;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000858  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:11.175011' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586773;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586773;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:12.177376' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586774;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586774;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:13.177598' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586775;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586775;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:14.1746' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586776;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586777;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586777;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:16.174627' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:17.174513' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586778;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:17.174434' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586779;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:18.174078' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000621  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586779;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:19.173867' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2229  Schema:   QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000232  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586780;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2229  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586780;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586781;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:20.177075' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2230  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586781;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2230  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586781;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586782;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:21.173796' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:21.177026' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586783;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:22.174523' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586784;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:23.174445' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001029  Lock_time: 0.000489  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586784;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586785;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:24.174061' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586785;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:24.177648' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586786;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586786;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586787;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000429  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586788;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:27.174322' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586789;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:28.177276' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586790;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586790;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:29.173958' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586790;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:29.177281' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2233  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586790;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2233  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586790;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586791;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000932  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586791;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:30.176939' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2234  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586791;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2234  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586791;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586792;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586793;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586793;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:32.174456' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001335  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586794;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586794;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:33.177049' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586795;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:34.174615' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001072  Lock_time: 0.000900  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586796;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:35.174097' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586797;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:36.174704' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001216  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586797;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586798;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586798;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:37.174361' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586799;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:38.174077' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000792  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:39.17395' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586800;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:39.177184' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2237  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586800;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2237  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586800;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586801;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2238  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586801;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2238  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586801;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:46:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586802;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586803;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:42.173874' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000660  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586803;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:42.177021' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586804;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586805;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:44.174348' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:44.174379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586806;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:45.174282' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586806;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000848  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586807;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:46.174172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586808;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586809;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:46:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586810;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:49.174936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586810;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2241  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586810;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2241  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586810;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000583  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586811;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586811;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:50.174343' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2242  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586811;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2242  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586811;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:46:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000993  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586812;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586812;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:51.174627' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586813;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586814;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586814;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:53.17463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586815;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:54.174189' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:55.174356' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003856  Lock_time: 0.003391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586817;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:56.174969' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586818;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:46:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586819;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586820;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:59.173796' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586820;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:46:59.177434' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2245  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586820;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2245  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586820;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586821;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001142  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586821;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2246  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586821;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2246  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586821;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586823;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586824;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:03.174686' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586824;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:03.174511' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586825;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001771  Lock_time: 0.001681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586825;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586827;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000777  Lock_time: 0.000629  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586827;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:06.176447' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586828;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:07.17417' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586829;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586830;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2249  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586830;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2249  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586830;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.001018  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:10.174083' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2250  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586831;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2250  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586831;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586832;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:11.174156' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586832;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:11.177183' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586833;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586833;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586834;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:13.174718' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:13.174737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000645  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586835;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001245  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586835;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586836;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:15.174791' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586837;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586838;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586838;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586838;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:17.177363' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586839;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586839;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586840;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:19.173804' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001582  Lock_time: 0.001464  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586840;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:19.176991' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2253  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586840;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2253  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586840;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586841;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586841;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2254  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586841;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2254  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586841;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586842;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586842;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:21.175107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:22.174795' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586843;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586844;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:23.174611' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586845;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586846;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:26.174259' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586848;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586848;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:27.17686' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:28.174414' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586849;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:28.174954' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586850;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000641  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586850;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2261  Schema:   QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000284  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586850;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2261  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586850;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586851;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586851;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:30.175532' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2262  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586851;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2262  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586851;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001442  Lock_time: 0.000802  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586852;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586852;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:31.174593' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586853;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586853;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586854;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:33.174452' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586855;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:34.174685' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:34.174516' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586856;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:35.17438' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586856;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586857;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586858;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:37.173762' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586859;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586859;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:38.175014' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586860;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586860;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:39.174934' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2265  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586860;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2265  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586860;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:47:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586861;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:40.174615' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001245  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586861;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2266  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586861;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2266  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586861;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000656  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586862;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:41.174054' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:41.1774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586863;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586864;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001170  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:43.174819' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586865;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586865;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:44.174469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586866;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:45.173856' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:46.174805' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586868;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:47.174198' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001089  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:48.173871' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000699  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586870;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2269  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586870;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2269  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586870;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001271  Lock_time: 0.000966  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586871;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000549  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586871;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:50.174537' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2270  Schema:   QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000359  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586871;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2270  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586871;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:47:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586872;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:51.174004' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002025  Lock_time: 0.001167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586872;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:47:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586873;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586873;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:52.177537' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000315  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586874;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000739  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586875;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:54.174001' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003158  Lock_time: 0.002984  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:55.176987' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586877;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:56.174765' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001172  Lock_time: 0.000997  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:57.174374' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002301  Lock_time: 0.002133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586878;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:47:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586879;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000911  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586879;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:58.173674' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586879;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:47:58.177126' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000710  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586880;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2273  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586880;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2273  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586880;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:00.17466' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586881;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2274  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586881;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2274  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586881;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586882;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586883;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:02.174028' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586886;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:05.174856' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586887;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:06.174574' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001429  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586887;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586888;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001336  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586888;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:07.174049' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586889;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586889;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586889;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:08.177147' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586890;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586890;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2277  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586890;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2277  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586890;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586891;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:10.174216' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001066  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586891;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2278  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586891;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2278  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586891;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586892;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586893;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:12.173746' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:12.176968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586894;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586894;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:13.174718' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:13.177351' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000389  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586895;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:14.1738' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001510  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586895;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000899  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586896;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:15.174433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586896;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:15.177381' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586897;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586897;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:16.173762' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:16.176896' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586898;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:17.174298' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586899;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586899;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:18.174991' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001908  Lock_time: 0.001738  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:19.177187' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2281  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586900;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2281  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586900;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000555  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586901;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586901;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:20.174517' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2282  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586901;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2282  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586901;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586902;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:22.174005' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586903;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:22.174589' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586904;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586904;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:23.17728' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586905;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:25.174172' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.006780  Lock_time: 0.006438  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586907;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586908;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586908;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:27.174208' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586909;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:28.173656' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:28.17695' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586910;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586910;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:29.174474' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2285  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586910;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2285  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586910;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586911;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586911;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:30.1774' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2286  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586911;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2286  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586911;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:48:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586912;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586912;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:31.177221' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586913;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:32.176412' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001517  Lock_time: 0.001124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586914;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:34.17495' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:34.175156' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001066  Lock_time: 0.000863  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586916;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.000865  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586916;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000615  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586917;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:36.174997' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:36.17503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586918;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:37.174466' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:38.174197' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:38.174501' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586920;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:39.173981' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001204  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586920;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586920;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:39.177293' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2289  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586920;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2289  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586920;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:48:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586921;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:40.173899' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001355  Lock_time: 0.001035  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586921;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2290  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586921;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2290  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586921;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:48:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:41.173878' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586923;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:42.1751' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586924;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:43.173762' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586924;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:43.177015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586925;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586925;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586926;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:45.175293' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:45.174968' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001024  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586927;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000990  Lock_time: 0.000887  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586927;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586928;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:47.174352' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001238  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586928;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586929;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000592  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:48.174683' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586930;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001057  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586930;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:49.174341' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2293  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586930;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2293  Schema:   QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000408  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586930;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:50.174203' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2294  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586931;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2294  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586931;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:48:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:51.17743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586933;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:48:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586934;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:53.17432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001739  Lock_time: 0.001343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586935;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000458  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586935;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:54.174143' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001124  Lock_time: 0.000951  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586936;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:55.177466' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586937;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586937;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:56.177379' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586938;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:48:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586939;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:58.174701' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586939;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:48:58.174563' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586940;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586940;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2297  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586940;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2297  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586940;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:49:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586941;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2298  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586941;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2298  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586941;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586942;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001464  Lock_time: 0.001325  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:01.177006' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586943;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:02.174774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000739  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586943;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:02.174417' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586944;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586944;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:03.174387' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001338  Lock_time: 0.001177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586945;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:04.177462' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001700  Lock_time: 0.001211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586946;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586946;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:05.177287' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586947;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586948;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:07.176875' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000617  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586949;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586949;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586950;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586950;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:09.174907' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2301  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586950;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2301  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586950;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:49:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586951;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586951;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:10.174832' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2302  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586951;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2302  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586951;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:49:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586952;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:11.173956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586953;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:12.173913' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586954;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:13.18068' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586955;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586955;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586956;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:15.174393' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000621  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586957;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586957;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:16.173792' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:16.177278' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586958;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:17.173985' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586959;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586959;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:18.173745' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586959;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:18.17694' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000305  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586960;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000963  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586960;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:19.174031' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2305  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586960;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2305  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586960;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586961;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586961;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2306  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586961;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2306  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586961;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:22.177245' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586964;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586964;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:23.177085' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586965;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:24.173751' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:25.174075' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586967;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586968;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:27.173699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586969;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:28.174956' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:29.174615' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001322  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586970;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2309  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586970;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2309  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586970;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:49:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:30.174737' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2310  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586971;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2310  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586971;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586972;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:31.17761' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586973;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586976;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:35.173926' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:35.177094' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586977;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586978;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586978;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:37.176949' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:38.174754' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586980;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000427  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586980;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2313  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586980;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2313  Schema:   QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000279  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586980;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586981;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:40.174313' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2314  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586981;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2314  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586981;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586983;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586984;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586984;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:43.174064' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000788  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:44.174297' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586986;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586986;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586986;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:45.177432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586987;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586987;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586989;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586989;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:48.174832' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2317  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586990;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2317  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586990;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001230  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586991;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001377  Lock_time: 0.001049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586991;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2318  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621586991;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2318  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621586991;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:49:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586992;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001167  Lock_time: 0.000981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:51.174404' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586993;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:52.17753' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:53.177055' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586995;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:49:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586996;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586996;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:55.175246' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:56.174122' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586998;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:57.174149' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:49:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621586999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:49:58.174441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001487  Lock_time: 0.001280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587000;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001819  Lock_time: 0.001279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587000;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2321  Schema:   QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000293  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587000;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2321  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587000;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:00.174665' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001330  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587001;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2322  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587001;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2322  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587001;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000934  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587002;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:01.174248' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001262  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:01.174446' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587003;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587003;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:02.17412' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587003;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:02.177248' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587004;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:03.177311' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587005;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:05.173871' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:05.174352' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587007;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587007;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001576  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587007;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:06.177369' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587008;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:07.173833' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587009;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:08.174439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001245  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587009;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587010;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:09.174298' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587010;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:09.177139' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2325  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587010;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2325  Schema:   QC_hit: No
# Query_time: 0.000094  Lock_time: 0.000057  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587010;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:10.173692' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587011;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2326  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587011;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2326  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587011;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587012;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:11.174636' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587013;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587014;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000561  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587015;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587016;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000812  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:15.173805' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587017;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001130  Lock_time: 0.000932  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:16.174111' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587018;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:17.177241' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587019;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:18.174693' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587020;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587020;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:19.174342' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2329  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587020;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2329  Schema:   QC_hit: No
# Query_time: 0.001837  Lock_time: 0.001772  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587020;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2330  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587021;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2330  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587021;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:50:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000715  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:21.174092' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:21.177507' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587023;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587023;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:22.17392' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:22.177227' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587024;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587025;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000583  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587025;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001188  Lock_time: 0.000921  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:24.177157' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587026;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:25.17377' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587026;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:25.176873' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587027;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:26.174444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002806  Lock_time: 0.002672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587028;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:27.174183' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587029;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000656  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:28.173857' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587030;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587030;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2333  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587030;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2333  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587030;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587031;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587031;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:30.174417' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2334  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587031;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2334  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587031;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587032;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:31.173865' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587033;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:32.176916' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587034;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:33.174581' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000623  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587035;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:34.174599' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587036;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587036;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:35.177416' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587037;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:36.176983' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587038;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587038;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:37.176949' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587039;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587039;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:40
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2337  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587040;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2337  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587040;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587041;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:40.175279' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2338  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587041;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2338  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587041;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:50:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587042;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587042;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:41.173803' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:50:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587044;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:43.177012' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587045;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:44.174834' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001158  Lock_time: 0.001077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587045;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001389  Lock_time: 0.001049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:45.174438' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000983  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587047;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:46.173927' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587049;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:48.174826' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001169  Lock_time: 0.001034  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587050;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000769  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587050;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:49.177476' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2341  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587050;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2341  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587050;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:50:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587051;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001231  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587051;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2342  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587051;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2342  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587051;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:50:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587052;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:51.17777' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587053;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587054;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587054;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:53.17713' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587055;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587055;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:54.173595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:54.176837' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587056;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587056;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:55.174836' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587057;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:56.174784' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:56.174622' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587058;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:57.17436' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:50:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000955  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587059;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:58.173879' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000882  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587060;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:50:59.173986' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2345  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587060;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2345  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587060;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:51:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001175  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587061;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2346  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587061;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2346  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587061;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587064;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587065;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:04.174757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:05.174423' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587067;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587067;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:06.177321' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587068;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587069;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587069;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:08.174543' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587070;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2349  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587070;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2349  Schema:   QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587070;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:51:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001162  Lock_time: 0.000743  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587071;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2350  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587071;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2350  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587071;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:51:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587072;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587072;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:11.176983' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587073;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587073;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587074;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:13.174505' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001178  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587075;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:14.174182' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587076;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:15.173686' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587076;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587076;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:15.177257' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587077;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587077;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587077;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:16.177353' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587078;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587078;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:17.17388' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:17.177164' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587079;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587079;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:18.177211' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587080;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587080;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2353  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587080;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2353  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587080;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:51:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587081;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2354  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587081;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2354  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587081;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000468  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587082;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:21.174987' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587083;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587084;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.000764  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587086;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:25.17735' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001134  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587087;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000971  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:26.174136' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587088;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587089;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587089;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:28.174473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587090;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:29.177216' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2357  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587090;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2357  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587090;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.000959  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:30.173698' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2358  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587091;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2358  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587091;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587092;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:31.174571' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587092;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:31.174592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587093;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:32.17737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587094;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587094;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:33.173832' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587094;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:33.177061' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:34.174607' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000731  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587095;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587096;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587096;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:35.1746' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001329  Lock_time: 0.000907  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587097;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000710  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587098;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:37.173847' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587099;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:38.176723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2361  Schema:   QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000387  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587100;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2361  Schema:   QC_hit: No
# Query_time: 0.001445  Lock_time: 0.001403  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587100;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:40.174287' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2362  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587101;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2362  Schema:   QC_hit: No
# Query_time: 0.000115  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587101;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:51:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587102;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:41.173907' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587103;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587103;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:42.173566' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587104;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:43.174702' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000567  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587105;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587105;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:44.174208' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587106;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:45.174901' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004386  Lock_time: 0.004169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587107;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587107;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:46.177338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:47.174646' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:47.175115' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587109;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:48.17463' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587110;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:49.175152' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2365  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587110;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2365  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587110;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587111;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:50.174688' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587111;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2366  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587111;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2366  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587111;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:51:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587112;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587112;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:51.174819' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:53.175011' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000655  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587115;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:54.174465' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587116;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001438  Lock_time: 0.001274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587116;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:55.174883' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587117;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:51:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587118;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:51:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587119;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587119;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:58.173743' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:58.176933' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587120;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587120;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:59.174007' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:51:59.177482' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2371  Schema:   QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000258  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587120;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2371  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587120;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587121;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587121;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2372  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587121;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2372  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587121;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587122;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:01.174305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587123;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:02.174114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587123;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:02.177304' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000327  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:03.174036' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001379  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587124;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000863  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587125;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:04.173719' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:05.175204' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587126;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:05.175439' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587127;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587127;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:06.177305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587128;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587128;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:07.17759' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587129;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587129;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:08.173669' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587129;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:08.176915' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587130;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:09.174777' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2375  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587130;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2375  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587130;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587131;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:10.174998' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2376  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587131;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2376  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587131;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587132;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587132;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:11.175795' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587133;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001208  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587134;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587135;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:14.17444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587136;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:15.173995' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587136;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:15.177258' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587137;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:16.17366' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:16.176875' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587138;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587138;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:18.175399' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587140;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587140;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587140;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:19.177321' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2379  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587140;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2379  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587140;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:52:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001201  Lock_time: 0.000685  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587141;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587141;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:20.174186' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2380  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587141;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2380  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587141;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587142;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:21.175116' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587143;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000612  Lock_time: 0.000489  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:22.177534' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587144;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:23.174432' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587145;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587145;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:25.175122' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587147;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587147;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:26.174359' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000538  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587148;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:27.174575' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:27.174757' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587149;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:28.174167' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587150;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587150;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:29.176974' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2383  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587150;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2383  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587150;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587151;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:30.174389' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587151;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2384  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587151;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2384  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587151;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:52:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587152;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:31.174348' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000615  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587153;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587153;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587154;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587154;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:33.17473' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:34.174123' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587156;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587157;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587158;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:37.174419' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000624  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587159;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587159;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:38.173747' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587159;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:38.177015' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:39.174587' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001193  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587160;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2387  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587160;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2387  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587160;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587161;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:40.174133' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:40.177325' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2388  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587161;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2388  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587161;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:52:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587162;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587162;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:41.174135' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587162;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:41.177101' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587163;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587163;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:42.174591' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587164;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000559  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587165;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:44.174841' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:45.174727' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000593  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587167;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:50
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2391  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587170;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2391  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587170;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:52:51
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2392  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587171;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2392  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587171;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:52:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587172;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:52.174141' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587174;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:53.173975' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001411  Lock_time: 0.000923  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587174;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587175;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:54.176843' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587176;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587176;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:55.175249' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587177;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587177;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:52:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:57.174319' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:52:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.001004  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587179;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:58.177216' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:52:59.173796' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2395  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587180;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2395  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587180;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587181;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001088  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587181;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:00.174833' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2396  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587181;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2396  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587181;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587182;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:01.174466' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:02.174575' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001308  Lock_time: 0.000921  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587184;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:03.177163' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587185;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587185;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:04.177148' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587186;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:05.175014' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587187;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:06.174745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:07.174523' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587189;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:08.173753' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587190;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2399  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587190;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2399  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587190;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587191;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:10.174992' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:10.175' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2400  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587191;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2400  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587191;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000634  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:11.174442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587192;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:11.17441' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587193;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587194;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587194;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:13.177132' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587195;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:14.174769' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587196;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:15.174689' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000783  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587197;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:16.173617' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587197;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:16.177243' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587198;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587199;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:18.17446' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:19.173855' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587200;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:19.174181' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2403  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587200;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2403  Schema:   QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000295  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587200;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001345  Lock_time: 0.001157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587201;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000564  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587201;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:20.174644' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2404  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587201;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2404  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587201;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587202;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:21.174049' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:21.174637' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587203;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587203;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:22.174455' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000668  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587204;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000446  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587204;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:23.174014' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587204;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:23.177367' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587205;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001005  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:24.173863' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587206;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587207;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:26.173901' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:26.177305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587208;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587210;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587210;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:29.174568' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2407  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587210;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2407  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587210;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587211;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587211;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2408  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587211;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2408  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587211;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587212;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587212;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:31.174586' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587213;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587213;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587214;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:33.174893' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000738  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587215;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:34.174555' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587216;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587216;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000313  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587217;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:36.174547' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587218;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587218;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:37.176094' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587219;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587219;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587219;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:38.177424' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587220;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:39.173963' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2411  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587220;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2411  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587220;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587221;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:40.174406' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2412  Schema:   QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587221;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2412  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587221;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587222;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:43.173523' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587225;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587226;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:45.174531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587227;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:46.174829' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587228;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:47.17449' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587229;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587230;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:49.173577' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2415  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587230;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2415  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000249  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587230;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:53:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587231;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:50.175484' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2416  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587231;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2416  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587231;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:53:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587232;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587232;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:51.177367' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001515  Lock_time: 0.001346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587233;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001843  Lock_time: 0.001346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587233;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587234;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:53.174058' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587235;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:54.173776' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:55.174608' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001653  Lock_time: 0.001490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587237;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001817  Lock_time: 0.001491  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587237;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:53:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587238;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:57.1746' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:53:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587239;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:58.177226' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587240;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587240;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:53:59.173702' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2419  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587240;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2419  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587240;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:54:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:00.174845' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2420  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587241;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2420  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587241;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587242;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:01.174392' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587243;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587243;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:02.177189' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000599  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587244;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:03.173673' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587245;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587246;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:05.174412' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587246;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:05.174704' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587247;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587247;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:06.173788' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:06.177008' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587248;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:07.174505' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:08.174033' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587250;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:09.173727' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2423  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587250;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2423  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587250;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:10.174741' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2424  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587251;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2424  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587251;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000615  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587252;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:11.174584' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000788  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587253;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:12.173967' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587254;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587254;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:13.173899' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587254;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:13.177188' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587255;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587255;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:14.177586' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587256;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:15.174075' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587256;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:15.177364' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587257;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003442  Lock_time: 0.002691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587257;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587258;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587258;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:17.173826' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587258;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:17.177116' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587259;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:18.173715' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:20
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2427  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587260;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2427  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587260;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587261;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587261;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:20.175019' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2428  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587261;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2428  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587261;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587262;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:21.174634' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:21.17465' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000875  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587263;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587263;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:22.17426' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587264;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:23.173979' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587264;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587265;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587265;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:24.1739' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:24.176894' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587266;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:25.176455' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587266;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:25.176461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587267;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587267;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:26.173913' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587267;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:26.177264' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587268;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:27.173948' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587268;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:27.177295' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587269;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587269;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587269;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:28.177275' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587270;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:29.173712' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2431  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587270;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2431  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587270;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587271;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:30.174811' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2432  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587271;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2432  Schema:   QC_hit: No
# Query_time: 0.000110  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587271;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:54:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587272;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587272;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:31.174897' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587273;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001142  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587274;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587275;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:34.174856' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587276;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000599  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:36.174351' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001396  Lock_time: 0.000973  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587277;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587278;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:37.173774' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:37.177068' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587279;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:38.178065' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587279;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587280;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:39.175221' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587280;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:39.17509' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2435  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587280;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2435  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587280;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587281;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:40.174108' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587281;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:40.177389' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2436  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587281;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2436  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587281;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:54:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587282;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587282;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587283;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:42.174648' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001379  Lock_time: 0.001232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587284;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001462  Lock_time: 0.001115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587284;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587285;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:44.174716' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587286;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587287;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:46.177521' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587288;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:47.174622' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587289;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587289;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:48.175237' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587290;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:49.17531' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2439  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587290;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2439  Schema:   QC_hit: No
# Query_time: 0.000103  Lock_time: 0.000062  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587290;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:54:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000702  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587291;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:50.173966' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2440  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587291;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2440  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587291;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:54:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587292;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587292;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587293;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:52.174706' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587294;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:54:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587295;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:54.175079' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:55.174346' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587296;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000603  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587297;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:56.174355' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587298;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000846  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587298;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:57.175025' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:54:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587299;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:58.175092' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001109  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587299;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:58.175107' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587300;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:54:59.176803' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2443  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587300;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2443  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587300;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:55:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587301;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587301;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2444  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587301;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2444  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587301;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:55:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587302;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:01.174869' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587303;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:02.174699' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587304;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587304;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:03.174346' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587305;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001212  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587305;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587306;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:05.174359' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587307;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:06.173949' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587308;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587308;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:07.173662' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:07.176888' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587309;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587309;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587310;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:09.174668' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2447  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587310;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2447  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587310;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587311;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:10.174676' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2448  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587311;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2448  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587311;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:55:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587312;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587313;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:12.174444' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587314;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587314;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:13.174758' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587315;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:14.174737' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587316;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:15.175102' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587317;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587317;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:16.174903' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587318;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:17.174008' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:17.1774' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587319;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000550  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:19.175492' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001044  Lock_time: 0.000846  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587320;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2451  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587320;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2451  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587320;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587321;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587321;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2452  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587321;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2452  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587321;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587322;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587323;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587323;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587324;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:23.174576' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000581  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587325;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587325;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:24.174394' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587327;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587327;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:26.174723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587328;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000563  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:28.17414' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587329;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:28.177306' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587330;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:29.173993' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2455  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587330;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2455  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587330;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587331;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587331;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:30.174643' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2456  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587331;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2456  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587331;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587332;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:31.177557' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587333;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587333;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587335;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:34.174356' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001513  Lock_time: 0.001324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587336;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001500  Lock_time: 0.001146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587337;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000719  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:37.174254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587338;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:37.174461' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587339;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587339;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:38.177153' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587340;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587340;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:39.176889' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2459  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587340;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2459  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587340;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000667  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587341;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587341;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:40.174749' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2460  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587341;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2460  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587341;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587342;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:41.174688' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587342;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:41.17454' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587343;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:42.1746' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000724  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587344;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:43.174487' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000655  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587345;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587346;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:55:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587347;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.001177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587347;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:46.1744' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587348;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587348;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:47.173933' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:47.177033' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587349;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587349;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:48.17462' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587350;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:49.174296' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2463  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587350;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2463  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587350;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:55:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001096  Lock_time: 0.000906  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587351;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587351;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:50.177258' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2464  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587351;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2464  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587351;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:55:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587352;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587352;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:51.177103' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587353;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587354;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:53.175369' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587355;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587355;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:54.17386' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:54.177282' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587356;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587356;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:55.173931' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:55.177498' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587357;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587357;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:56.173917' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:55:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000917  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:58.173817' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001012  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587360;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:55:59.17387' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2467  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587360;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2467  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587360;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001148  Lock_time: 0.000958  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:00.174613' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000660  Lock_time: 0.000469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587361;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:00.175072' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2468  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587361;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2468  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587361;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587362;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001175  Lock_time: 0.000938  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:01.174676' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587363;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587364;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:03.174798' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:03.174941' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587365;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587365;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:04.175051' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001076  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587366;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:05.173951' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587366;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:05.177115' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.000963  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587367;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:06.173845' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587368;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:07.1749' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587370;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:09.17553' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2471  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587370;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2471  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587370;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587371;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2472  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587371;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2472  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587371;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:11.173917' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587372;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:11.174809' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587373;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:13.174809' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001286  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587375;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:14.174464' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587376;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:15.174599' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587377;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587378;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:17.174665' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587379;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:18.174826' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:18.174975' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587380;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2475  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587380;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2475  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587380;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:56:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002187  Lock_time: 0.002019  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587381;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:20.174317' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002493  Lock_time: 0.002134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587381;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2476  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587381;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2476  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587381;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:56:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587382;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587382;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587382;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:21.177305' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587383;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587383;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:22.17426' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587384;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:23.173847' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587385;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:24.174858' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587385;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:24.17489' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587386;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587386;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:26.174037' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587388;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:27.174587' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587389;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000862  Lock_time: 0.000638  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587389;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:28.174258' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587390;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:29.174024' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587390;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:29.177386' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2482  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587390;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2482  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587390;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:30.173739' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2483  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587391;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2483  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587391;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:56:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587392;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587393;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587394;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:33.174573' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587395;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:34.174557' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587396;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:35.174852' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587397;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:36.174765' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000374  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587398;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001489  Lock_time: 0.000817  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587399;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587399;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:38.174216' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000943  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587400;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587400;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:39.17398' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2486  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587400;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2486  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587400;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587401;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587401;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587401;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:40.177112' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2487  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587401;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2487  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587401;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:56:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000679  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587402;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:41.173996' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587402;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:41.177425' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587403;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587403;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:42.173663' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587403;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:42.176807' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587404;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587404;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:43.174548' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587405;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:44.174362' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:45.174433' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587407;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:46.174318' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:47.174315' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000600  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587408;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587409;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:49.173942' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2490  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587410;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2490  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587410;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:56:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587411;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587411;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:50.176823' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2491  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587411;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2491  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587411;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:56:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587412;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587412;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587413;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:52.174375' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587413;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:52.174342' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587414;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:53.174184' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000777  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587414;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:56:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000788  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587415;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:54.174273' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587416;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587416;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:55.177103' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587417;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587417;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:56.174937' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587418;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:57.174832' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:56:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:58.174461' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001713  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587419;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587420;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:56:59.177234' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2494  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587420;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2494  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587420;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587421;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587421;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587421;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:00.176938' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2495  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587421;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2495  Schema:   QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000331  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587421;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587422;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587422;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587423;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:02.174447' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:03.174273' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:04.17383' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:05.173883' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587427;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:06.173846' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587428;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587428;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:07.176914' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587429;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587429;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:08.174826' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587430;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587430;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:09.174391' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2498  Schema:   QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587430;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2498  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587430;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:57:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587431;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:10.173836' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000679  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587431;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587431;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:10.177121' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2499  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587431;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2499  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587431;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:57:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587432;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:11.174077' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001624  Lock_time: 0.001040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587432;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587433;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000715  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:12.174202' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000533  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587433;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:12.179389' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001028  Lock_time: 0.000868  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587434;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000323  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587434;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:13.174096' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587435;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:14.174581' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587435;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587436;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587436;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:15.174213' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001436  Lock_time: 0.000880  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587437;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587438;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:17.177097' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:18.174567' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587439;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:18.17478' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:19.174443' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587440;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:19.174674' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2502  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587440;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2502  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587440;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:20.17416' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587441;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2503  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587441;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2503  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587441;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:57:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587442;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:21.174269' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001106  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587442;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:21.174294' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587443;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:22.173827' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587443;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587444;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587445;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:24.174026' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587447;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587447;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587448;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:27.174572' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587449;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587450;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:29.176946' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2506  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587450;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2506  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587450;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000679  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587451;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587451;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:30.174507' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2507  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587451;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2507  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587451;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:57:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587452;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587452;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:31.174531' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587453;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:32.174203' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000694  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587454;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001122  Lock_time: 0.000760  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587454;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587454;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:33.177058' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000703  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587455;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:34.174615' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587456;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001172  Lock_time: 0.001008  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:35.174317' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587457;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587457;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:36.177254' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587458;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:57:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587459;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:39.174366' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2510  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587460;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2510  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587460;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587461;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587461;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:40.173949' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2511  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587461;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2511  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587461;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587462;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587462;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:41.174606' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587463;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:42.174338' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587464;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587464;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:43.1772' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:44.174741' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587466;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:45.174732' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587467;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:46.174262' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:46.174374' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587468;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587468;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:47.173743' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587469;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587469;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:48.173788' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587469;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:48.177343' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587470;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587470;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:49.173562' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587470;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:49.176878' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2514  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587470;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2514  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587470;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:57:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587471;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587471;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2515  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587471;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2515  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587471;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:57:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587474;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:53.174652' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:54.177422' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:55.173836' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:55.17702' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587477;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001217  Lock_time: 0.001103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:56.174789' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587478;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:57.174365' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000737  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587478;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:57.174321' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:57:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587479;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587479;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:58.177085' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587480;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000703  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:57:59.174641' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2518  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587480;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2518  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587480;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:00.174647' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2519  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587481;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2519  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587481;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587483;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587483;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:02.173859' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587484;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000646  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587485;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:04.177193' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587486;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001170  Lock_time: 0.000831  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587486;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:06.174118' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:07.173857' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587488;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:07.177447' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:08.174011' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587489;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587490;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:09.175264' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2522  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587490;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2522  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587490;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587491;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587491;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:10.177487' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2523  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587491;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2523  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587491;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587492;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587492;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000723  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:11.177053' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587493;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587493;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587494;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:13.174409' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587494;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002636  Lock_time: 0.002341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:14.173708' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003680  Lock_time: 0.002900  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587495;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001321  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587496;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587497;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:16.174696' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587497;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:17.174178' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:17.174288' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:18.176874' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587500;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587500;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:19.174789' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2526  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587500;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2526  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587500;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:58:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587501;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587501;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:20.17415' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2527  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587501;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2527  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587501;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587502;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587502;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:21.173754' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587503;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:22.174002' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587504;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:23.175903' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587505;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000964  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587506;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:25.175218' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587507;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587507;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:26.173857' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:26.177156' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587508;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:27.175046' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001250  Lock_time: 0.001142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587508;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587509;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:28.174762' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587509;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:28.174882' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587510;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587510;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:29.174671' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2530  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587510;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2530  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587510;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:58:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587511;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587511;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:30.174557' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2531  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587511;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2531  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587511;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587512;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587512;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587512;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:31.177437' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587513;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:32.174387' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001968  Lock_time: 0.001497  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587513;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004676  Lock_time: 0.004476  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587514;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:33.17453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000811  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587515;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587515;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:34.174912' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:35.174374' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587516;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:39.175166' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2534  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587520;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2534  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587520;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:40.173841' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2535  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587521;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2535  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587521;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001012  Lock_time: 0.000843  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:41.173741' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000945  Lock_time: 0.000807  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587523;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:42.174729' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000583  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587524;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:43.177183' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587525;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:44.173751' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:44.1769' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587526;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:45.174501' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587527;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:46.181024' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587528;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:47.1739' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587529;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587529;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:48.17682' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587530;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:49.174445' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:49.174145' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2538  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587530;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2538  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587530;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001106  Lock_time: 0.000938  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000498  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587531;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:50.17383' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:50.17736' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2539  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000232  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587531;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2539  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587531;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:58:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:51.174388' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000741  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587532;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587533;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:52.174468' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587534;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587535;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587535;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:54.174723' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000591  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587537;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587537;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:56.174286' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:58:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000629  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587538;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:57.174285' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587538;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:58:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000849  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:58:58.174123' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002772  Lock_time: 0.002616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587540;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2542  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587540;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2542  Schema:   QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587540;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:00.174367' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587541;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2543  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587541;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2543  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587541;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587542;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:01.174569' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:02.17497' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587543;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587544;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587544;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:03.174533' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587546;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:05.175107' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587546;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:05.175264' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001015  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587547;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587548;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587549;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000724  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:08.174634' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587550;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:09.174035' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:09.177655' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2546  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587550;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2546  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587550;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000308  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587551;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:10.174392' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2547  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587551;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2547  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587551;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000745  Lock_time: 0.000408  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:11.173941' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587552;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:11.177917' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587553;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587554;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:13.174008' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001353  Lock_time: 0.001160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587555;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:14.173884' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587555;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:14.17715' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587556;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001101  Lock_time: 0.001001  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587557;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:16.1745' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587558;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587559;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:18.17469' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:19.175317' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:19.175433' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2550  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587560;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2550  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587560;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587561;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001715  Lock_time: 0.001513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587561;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:20.177454' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2551  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587561;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2551  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587561;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587562;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000743  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587562;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:21.174333' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587563;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:22.177409' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:23.173776' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:23.17778' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587565;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587565;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:24.17449' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587566;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:25.174004' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:26.174423' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:26.174414' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000757  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587568;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001263  Lock_time: 0.001003  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587569;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587569;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:28.176928' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001330  Lock_time: 0.001190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587570;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:29.174402' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000823  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:29.1748' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2554  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587570;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2554  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587570;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:59:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001360  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587571;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001686  Lock_time: 0.001455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2555  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587571;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2555  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587571;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:59:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587572;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.001110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:31.174458' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587573;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001068  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587573;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587574;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587574;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:33.175296' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001192  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587575;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:34.177076' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587576;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587577;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000764  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587577;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:36.177656' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587578;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000708  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:37.174037' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587578;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:37.177266' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587579;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587579;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:38.174132' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:38.177406' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587580;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2558  Schema:   QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000271  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587580;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2558  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587580;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:59:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:40.174302' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2559  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587581;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2559  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587581;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:59:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587582;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:41.174326' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587584;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587585;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587586;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587587;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:46.176928' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587588;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587589;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587590;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:49.175039' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:49.175107' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2562  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587590;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2562  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587590;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  8:59:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001204  Lock_time: 0.000811  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587591;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2563  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587591;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2563  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587591;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  8:59:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587592;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:51.175801' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587593;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587593;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000364  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587594;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587595;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:54.174422' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001180  Lock_time: 0.000732  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587596;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:55.174012' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587596;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:55.186823' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001013  Lock_time: 0.000608  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587597;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  8:59:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000864  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587598;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:57.174752' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  8:59:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:58.174477' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587599;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:58.174018' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000571  Lock_time: 0.000458  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 08:59:59.174007' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2566  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587600;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2566  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587600;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587601;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:00.174369' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:00.174383' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2567  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587601;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2567  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587601;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587602;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:01.175185' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587603;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587603;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587604;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:03.174809' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001623  Lock_time: 0.001025  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587605;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587605;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:04.177381' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001181  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587606;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:05.174721' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587607;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587607;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:06.174405' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:08
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:07.174453' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:09
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587609;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000745  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587609;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:08.174684' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:10
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587610;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:09.175076' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2570  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587610;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2570  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587610;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:11
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:10.1751' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2571  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587611;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2571  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587611;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:11.177576' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587613;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:12.174503' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001261  Lock_time: 0.000467  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587614;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:13.174785' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587615;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587615;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587616;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:15.176946' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587617;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587617;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:17.174381' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000655  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587619;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587619;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:18.176951' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587620;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587620;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2574  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587620;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2574  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587620;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:20.174845' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2575  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587621;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2575  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587621;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:21.17449' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002040  Lock_time: 0.001885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587623;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:23.17568' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587625;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587626;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587627;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:26.174559' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003071  Lock_time: 0.002930  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587628;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002540  Lock_time: 0.002410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:27.173877' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587629;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587629;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:28.185614' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587630;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:29.174532' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2578  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587630;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2578  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587630;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:30.174669' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2579  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587631;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2579  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587631;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587632;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:31.177186' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587633;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587633;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:32.178002' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587634;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:34.173946' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001356  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587635;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:34.177479' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587636;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001216  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:35.173613' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:35.176826' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002066  Lock_time: 0.001926  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587637;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587638;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587638;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:37.173717' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587638;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:37.17689' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587639;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587639;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:39.174088' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:39.177023' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2582  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587640;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2582  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587640;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587641;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:40.174773' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2583  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587641;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2583  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587641;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:00:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587642;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:41.17442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587642;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.000986  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:42.173923' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:44
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001033  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587644;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:43.173852' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:45
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587645;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:46
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587646;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:45.174484' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587646;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:47
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587647;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:46.174336' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:48
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000608  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587648;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:47.1741' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:49
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587649;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587649;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:48.177621' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:50
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587650;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2587  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587650;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2587  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587650;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:51
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587651;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587651;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:50.17716' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2588  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587651;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2588  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587651;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:00:52
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587652;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587652;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:51.174592' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:53
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587653;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:52.174489' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:52.174585' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:54
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587654;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001417  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587654;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587654;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:53.177398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:55
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:54.173961' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:56
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587656;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000705  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:55.173912' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:55.177194' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:57
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587657;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:56.173702' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:56.177029' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:00:58
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001233  Lock_time: 0.001052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587658;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001364  Lock_time: 0.001011  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587658;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:00:59
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:00:58.178295' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:00
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587660;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2596  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587660;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2596  Schema:   QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000476  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587660;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:01:01
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000656  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587661;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2597  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587661;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2597  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587661;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:01:02
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:01.174336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587662;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:01.174589' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:03
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587663;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587663;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:04
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587664;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:05
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000501  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587665;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:04.174506' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:06
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587666;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:05.174011' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587666;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:05.177134' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:07
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587667;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:06.173926' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:10
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2601  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587670;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2601  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587670;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:11
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2602  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587671;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2602  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587671;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:01:12
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587672;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:11.174747' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:13
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:14
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001710  Lock_time: 0.001487  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587674;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:15
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587675;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000561  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587675;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587675;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:14.177168' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:16
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.001023  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587676;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001636  Lock_time: 0.001162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587676;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:17
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587677;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587677;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:16.174123' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:18
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587678;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587678;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:17.174014' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:17.177254' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:19
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587679;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587679;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:18.173632' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:20
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587680;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:19.174483' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2605  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587680;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2605  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587680;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 210521  9:01:21
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587681;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:20.177278' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2606  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587681;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2606  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587681;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:22
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587682;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587682;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:21.177197' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:23
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587683;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:22.17388' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:24
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587684;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:23.17353' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:25
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587685;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587685;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:24.174359' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:26
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587686;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:25.177161' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:27
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:28
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587688;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587688;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:27.177009' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:29
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000461  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587689;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:30
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001093  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587690;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2610  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587690;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2610  Schema:   QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000245  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587690;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:31
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001363  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:30.173725' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2611  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587691;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2611  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587691;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:32
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:31.174608' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:33
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587693;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587693;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:32.174059' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:32.177497' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:34
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587694;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587694;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:33.177132' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:35
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587695;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587695;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:36
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:35.174398' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:37
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587697;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587697;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:36.174136' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587697;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:36.177283' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:38
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587698;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587698;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:37.176936' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:39
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587699;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587699;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 210521  9:01:40
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587700;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:39.177206' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2615  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587700;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2615  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587700;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:41
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000733  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587701;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2616  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1621587701;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2616  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1621587701;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 210521  9:01:42
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587702;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:41.175133' order by MODIFIED_DATE ASC limit 1;
# Time: 210521  9:01:43
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 548  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587703;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.187.212]
# Thread_id: 550  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001632  Lock_time: 0.001325  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1018
SET timestamp=1621587703;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2021-05-21 09:01:42.174742' order by MODIFIED_DATE ASC limit 1;