Closed 7yl4r closed 6 years ago
Hmm... something didn't work right here:
MariaDB [imars_product_metadata]> SELECT short_name,id FROM product ORDER BY id;
+------------------------+----+
| short_name | id |
+------------------------+----+
| ntf_wv2_m1bs | 11 |
MariaDB [imars_product_metadata]> SELECT status_id,COUNT(*) FROM file WHERE product_id=11 GROUP BY status_id ;
+-----------+----------+
| status_id | COUNT(*) |
+-----------+----------+
| 1 | 176 |
| 2 | 9 |
| 4 | 193 |
| 5 | 116 |
+-----------+----------+
4 rows in set (0.00 sec)
MariaDB [imars_product_metadata]> SELECT * FROM status;
+----+------------+-----------------------------------------------------------------------------------------------+
| id | short_name | description |
+----+------------+-----------------------------------------------------------------------------------------------+
| 1 | std | default status normal. the file exists, is up-to-date, and is accessible in the imars system. |
| 2 | external | file not ingested into the imars system, but is available from an external source. |
| 3 | to_load | file loaded into the data warehouse, but not yet processed. to_load is a holdover misnomer. |
| 4 | error | product is associated with an error in IMaRS automated processing system |
| 5 | deleted | file was deleted and is no longer served by IMaRS |
+----+------------+-----------------------------------------------------------------------------------------------+
Looks like a lot split into std & error, but very few dags (none?) were triggered... Oh! Maybe because there is no wv2_classfication_big_bend
DAG to trigger.
Fixed missing dag and trying again:
MariaDB [imars_product_metadata]> UPDATE file SET status_id=3 WHERE product_id=11 AND filepath LIKE "/srv/imars-objects/big_bend/wv2%";
Query OK, 201 rows affected (0.05 sec)
Rows matched: 201 Changed: 201 Warnings: 0
To confirm:
MariaDB [imars_product_metadata]> SELECT status_id,COUNT(*) FROM file WHERE product_id=11 GROUP BY status_id ;
+-----------+----------+
| status_id | COUNT(*) |
+-----------+----------+
| 1 | 176 |
| 3 | 201 |
| 4 | 1 |
| 5 | 116 |
+-----------+----------+
Picking up from #8
Moving from staging status (
external
(2)) intoto_load
(3) so airflow can start processing.Note that is most of big_bend 2014, but the few dates are excluded because of duplicate dates & missing files.