Skip to content

UNT162-20: tools/migrate-data — copiar event store e read models para o Cloud SQL (s6.1) - #18

Merged
devin-ai-integration[bot] merged 4 commits into
masterfrom
devin/UNT162-20-migrate-data
Nov 5, 2026
Merged

devin-ai-integration[bot] merged 4 commits into
masterfrom
devin/UNT162-20-migrate-data

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Resumo

Ticket UNT162-20 (passo s6.1 do plano): ferramenta e runbook para copiar os dois bancos MySQL do TAS (enginedb: event store Axon, sagas, tokens; appdb: event store e read models do trader-app) para o Cloud SQL na janela de congelamento do cutover, com ensaio local ponta a ponta. Nada foi executado contra o TAS nem contra um projeto GCP.

  • tools/migrate-data/preflight.sh: inventário somente leitura das duas pontas (versão, charset, sql_mode, binlog para DMS, linhas/tamanho/collation por tabela, diff de colunas origem x destino, histórico Flyway e sessões conectadas no destino). Sai com 1 se as colunas divergirem.
  • tools/migrate-data/copy.sh [all|dump|load]: mysqldump --single-transaction só das linhas (--no-create-info, sem locks, somente leitura no TAS); o schema no destino é o baseline Flyway V1 (s3.2), então o ddl-auto=validate do perfil kubernetes valida a cópia. O load recusa se o V1 não estiver aplicado, se houver sessão conectada ou se o destino já tiver dados (sem TARGET_WIPE=yes). Grava timings.tsv (segundos, linhas, bytes) para dimensionar o freeze.
  • tools/migrate-data/verify.sh: origem x destino — conjunto de tabelas, nomes/tipos de coluna por tabela, contagem de linhas e checksum independente de ordem (que conta linhas duplicadas) de todas as colunas de todas as tabelas (inclui cada read model), max(global_index), número de agregados e max(sequence_number) por agregado nas tabelas de eventos.
  • tools/migrate-data/rehearse.sh + rehearsal/compose.yml: ensaio completo com MySQL 5.7 (stand-in do TAS, apps no perfil local com ddl-auto=update, como o perfil cloud do TAS) populado pelo fluxo de compra/venda da API, e MySQL 8.0 (stand-in do Cloud SQL, TLS obrigatório, um usuário por banco) com o V1 aplicado pelo perfil kubernetes. Depois da cópia sobe os apps na cópia, compara a API de consulta com a origem e executa um trade novo.
  • docs/migration/cutover-runbook.md, seção s6.1: procedimento antes/durante o freeze, rollback, notas de DMS (rede, binlog ROW/FULL, usuário de replicação, schema do DMS x baseline Flyway) e dimensionamento do freeze para o s6.2.
  • Job de CI migrate-data em .github/workflows/java.yml (shellcheck + rehearse.sh com SEED_ROUNDS=100).

Achado durante o ensaio: as collations do 5.7 (latin1/utf8_general_ci) e do 8.0 ordenam orderentry_* e order_view de forma diferente, por isso as listas de tabelas/colunas são ordenadas por byte no shell; e o checksum usa somas DECIMAL exatas das metades do md5 de cada linha (sem float; XOR foi descartado após o Devin Review porque linhas duplicadas se cancelam). <SIDE>_SSL_MODE tem padrão REQUIRED.

Ainda pendente (sem acesso): cópia de dados reais do TAS, execução em staging no Cloud SQL e DMS (s6.2). Não houve acesso ao TAS nem projeto GCP.

Como testar

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 ./mvnw -B -DskipTests package
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 SEED_ROUNDS=300 tools/migrate-data/rehearse.sh
shellcheck -x tools/migrate-data/*.sh

Requer Docker, Java 8, clientes mysql/mysqldump 8.0, jq, curl e as portas 3316, 3317, 5672, 8080, 8081 e 8761 livres.

Evidência (execução local no commit inicial 8005d0b, SEED_ROUNDS=2000; checksum por XOR, 60 checks)

Origem após o seed: enginedb.domain_event_entry 42.042 linhas (31,6 MB), appdb.order_view/transaction_view 5.603 linhas cada. preflight.sh: same tables and columns (35 columns) em enginedb, (86 columns) em appdb; Flyway 1 1 baseline schema SQL success nos dois.

tools/migrate-data/verify.sh:

STATUS    DB       CHECK                                                SOURCE                                       TARGET                                      
OK        enginedb tables (6 on source)                                 ca331d7ba110                                 ca331d7ba110                                
OK        enginedb association_value_entry: rows                        3                                            3                                           
OK        enginedb association_value_entry: checksum                    6A17526E0A1B1B14C8E14C0E968E19BF             6A17526E0A1B1B14C8E14C0E968E19BF            
OK        enginedb domain_event_entry: rows                             42042                                        42042                                       
OK        enginedb domain_event_entry: checksum                         8E326F7136C0233D3696FF309758E6EC             8E326F7136C0233D3696FF309758E6EC            
OK        enginedb hibernate_sequence: rows                             2                                            2                                           
OK        enginedb hibernate_sequence: checksum                         00000000000000000000000000000000             00000000000000000000000000000000            
OK        enginedb saga_entry: rows                                     3                                            3                                           
OK        enginedb saga_entry: checksum                                 1ECE5DBCE5824C5C43B20B762076E272             1ECE5DBCE5824C5C43B20B762076E272            
OK        enginedb snapshot_event_entry: rows                           0                                            0                                           
OK        enginedb snapshot_event_entry: checksum                       00000000000000000000000000000000             00000000000000000000000000000000            
OK        enginedb token_entry: rows                                    0                                            0                                           
OK        enginedb token_entry: checksum                                00000000000000000000000000000000             00000000000000000000000000000000            
OK        enginedb domain_event_entry: max(global_index)                47645                                        47645                                       
OK        enginedb domain_event_entry: aggregates                       5615                                         5615                                        
OK        enginedb domain_event_entry: per-aggregate max(sequence_number) DC36927B96ADAADA69BF20400DAA9F65             DC36927B96ADAADA69BF20400DAA9F65            
OK        enginedb snapshot_event_entry: aggregates                     0                                            0                                           
OK        enginedb snapshot_event_entry: per-aggregate max(sequence_number) 00000000000000000000000000000000             00000000000000000000000000000000            
OK        appdb    tables (18 on source)                                3558f23d0e99                                 3558f23d0e99                                
OK        appdb    association_value_entry: rows                        0                                            0                                           
OK        appdb    association_value_entry: checksum                    00000000000000000000000000000000             00000000000000000000000000000000            
OK        appdb    company_view: rows                                   3                                            3                                           
OK        appdb    company_view: checksum                               0B08C6C037D3BB3D62C105BEE5140D71             0B08C6C037D3BB3D62C105BEE5140D71            
OK        appdb    domain_event_entry: rows                             15                                           15                                          
OK        appdb    domain_event_entry: checksum                         BD02F211A5BCE3CDAD8B333F7A06E5B6             BD02F211A5BCE3CDAD8B333F7A06E5B6            
OK        appdb    hibernate_sequence: rows                             5                                            5                                           
OK        appdb    hibernate_sequence: checksum                         50E3E90D1911CAF2958CC4D259AE88F6             50E3E90D1911CAF2958CC4D259AE88F6            
OK        appdb    item_entry: rows                                     2817                                         2817                                        
OK        appdb    item_entry: checksum                                 D7F199E9613E6D10160B980A64DACCF2             D7F199E9613E6D10160B980A64DACCF2            
OK        appdb    order_book_view: rows                                3                                            3                                           
OK        appdb    order_book_view: checksum                            35BD8EEDDC78C5F3024788E670B70E09             35BD8EEDDC78C5F3024788E670B70E09            
OK        appdb    order_view: rows                                     5603                                         5603                                        
OK        appdb    order_view: checksum                                 DECF8FDCDD12F2A971BE1E04878971CF             DECF8FDCDD12F2A971BE1E04878971CF            
OK        appdb    orderentry_buy: rows                                 1                                            1                                           
OK        appdb    orderentry_buy: checksum                             3D225EF39FA247941179810265DFFFD4             3D225EF39FA247941179810265DFFFD4            
OK        appdb    orderentry_sell: rows                                2                                            2                                           
OK        appdb    orderentry_sell: checksum                            233BFFEB5F3513EC6D4DF4E26746D04E             233BFFEB5F3513EC6D4DF4E26746D04E            
OK        appdb    portfolio_item_possession: rows                      15                                           15                                          
OK        appdb    portfolio_item_possession: checksum                  DF14B698997FCA8EC325DFC0E56096A8             DF14B698997FCA8EC325DFC0E56096A8            
OK        appdb    portfolio_item_reserved: rows                        2                                            2                                           
OK        appdb    portfolio_item_reserved: checksum                    A7D85BCD17F814637CD47F968741C8C3             A7D85BCD17F814637CD47F968741C8C3            
OK        appdb    portfolio_view: rows                                 9                                            9                                           
OK        appdb    portfolio_view: checksum                             3AB0A75992FF7ECF5B4BF34BFEC01C3A             3AB0A75992FF7ECF5B4BF34BFEC01C3A            
OK        appdb    saga_entry: rows                                     0                                            0                                           
OK        appdb    saga_entry: checksum                                 00000000000000000000000000000000             00000000000000000000000000000000            
OK        appdb    snapshot_event_entry: rows                           0                                            0                                           
OK        appdb    snapshot_event_entry: checksum                       00000000000000000000000000000000             00000000000000000000000000000000            
OK        appdb    token_entry: rows                                    0                                            0                                           
OK        appdb    token_entry: checksum                                00000000000000000000000000000000             00000000000000000000000000000000            
OK        appdb    trade_executed_view: rows                            2800                                         2800                                        
OK        appdb    trade_executed_view: checksum                        27378711CE6A66B22C8493DE4BA69FDD             27378711CE6A66B22C8493DE4BA69FDD            
OK        appdb    transaction_view: rows                               5603                                         5603                                        
OK        appdb    transaction_view: checksum                           5D98EFCEF1253B3CA59669F43EF86E22             5D98EFCEF1253B3CA59669F43EF86E22            
OK        appdb    user_view: rows                                      9                                            9                                           
OK        appdb    user_view: checksum                                  692C205A5140D5F93440AAA1F290E4C6             692C205A5140D5F93440AAA1F290E4C6            
OK        appdb    domain_event_entry: max(global_index)                15                                           15                                          
OK        appdb    domain_event_entry: aggregates                       12                                           12                                          
OK        appdb    domain_event_entry: per-aggregate max(sequence_number) DAECB364ABFDE32197A84AA75807992C             DAECB364ABFDE32197A84AA75807992C            
OK        appdb    snapshot_event_entry: aggregates                     0                                            0                                           
OK        appdb    snapshot_event_entry: per-aggregate max(sequence_number) 00000000000000000000000000000000             00000000000000000000000000000000            
60 checks, 0 mismatches

Subida na cópia, comparação da API, trade novo e tempos:

== 4. Start the apps on the copy (fresh RabbitMQ, as on GKE)
trading-engine UP
trader-app UP
o.f.core.internal.command.DbMigrate      : Schema `appdb` is up to date. No migration necessary.
o.f.core.internal.command.DbMigrate      : Schema `enginedb` is up to date. No migration necessary.
PASS: query API on the copy is identical to the source (23 lines: users, companies, order books, portfolios, transactions)

== 5. New trade on the copy (event store keeps appending after the copied global_index / sequence numbers)
allard before {"amountOfMoney":107065,"pivotal":333}, after {"amountOfMoney":106372,"pivotal":340} (expected {"amountOfMoney":106372,"pivotal":340}); ben before {"amountOfMoney":106999}
enginedb max(global_index): 47645 after the copy, 47662 after the new trade
PASS: new trade executed on the copied event store

== Timings (seed rounds: 2000)
step  db        seconds  rows   bytes
dump  enginedb  0.3      42050  31249641
load  enginedb  2.4      42050  31249641
dump  appdb     0.1      16887  1793012
load  appdb     0.4      16887  1793012
copy.sh (dump + load, both databases): 5s; verify.sh: 6s
freeze start -> both apps healthy on the copy: 55s
1.8M	target/migrate-data/rehearsal/dump/appdb.sql
30M	target/migrate-data/rehearsal/dump/enginedb.sql
EXIT 0

Com SEED_ROUNDS=300: 6.350 + 2.607 linhas, copy.sh 4 s, verify.sh 4 s, 60 checks / 0 mismatches, mesmos PASS. Testes Java: mvn -B test com Java 8 — 171 testes, 0 falhas, 0 erros.

Evidência após as correções do Devin Review (head atual, SEED_ROUNDS=300)

verify.sh (agora com o check columns):

STATUS    DB       CHECK                                                SOURCE                                       TARGET                                      
OK        enginedb tables (6 on source)                                 ca331d7ba110                                 ca331d7ba110                                
OK        enginedb association_value_entry: columns                     5 6b248932                                   5 6b248932                                  
OK        enginedb association_value_entry: rows                        3                                            3                                           
OK        enginedb association_value_entry: checksum                    26193418786428554997 24829449080404397358    26193418786428554997 24829449080404397358   
OK        enginedb domain_event_entry: columns                          10 d39a8b7c                                  10 d39a8b7c                                 
OK        enginedb domain_event_entry: rows                             6342                                         6342                                        
OK        enginedb domain_event_entry: checksum                         58180732748394084345440 58224139131907072189793 58180732748394084345440 58224139131907072189793
OK        enginedb hibernate_sequence: columns                          1 9b930181                                   1 9b930181                                  
OK        enginedb hibernate_sequence: rows                             2                                            2                                           
OK        enginedb hibernate_sequence: checksum                         4499550435957179484 19345578699913736818     4499550435957179484 19345578699913736818    
OK        enginedb saga_entry: columns                                  4 c7705012                                   4 c7705012                                  
OK        enginedb saga_entry: rows                                     3                                            3                                           
OK        enginedb saga_entry: checksum                                 21708011560566772270 33124856155890631004    21708011560566772270 33124856155890631004   
OK        enginedb snapshot_event_entry: columns                        9 68ffdfa6                                   9 68ffdfa6                                  
OK        enginedb snapshot_event_entry: rows                           0                                            0                                           
OK        enginedb snapshot_event_entry: checksum                       0 0                                          0 0                                         
OK        enginedb token_entry: columns                                 6 c113b22a                                   6 c113b22a                                  
OK        enginedb token_entry: rows                                    0                                            0                                           
OK        enginedb token_entry: checksum                                0 0                                          0 0                                         
OK        enginedb domain_event_entry: max(global_index)                7185                                         7185                                        
OK        enginedb domain_event_entry: aggregates                       855                                          855                                         
OK        enginedb domain_event_entry: per-aggregate max(sequence_number) 7997390498886186315321 7757464619394684386394 7997390498886186315321 7757464619394684386394
OK        enginedb snapshot_event_entry: aggregates                     0                                            0                                           
OK        enginedb snapshot_event_entry: per-aggregate max(sequence_number) 0 0                                          0 0                                         
OK        appdb    tables (18 on source)                                3558f23d0e99                                 3558f23d0e99                                
OK        appdb    association_value_entry: columns                     5 6b248932                                   5 6b248932                                  
OK        appdb    association_value_entry: rows                        0                                            0                                           
OK        appdb    association_value_entry: checksum                    0 0                                          0 0                                         
OK        appdb    company_view: columns                                5 9012c4fe                                   5 9012c4fe                                  
OK        appdb    company_view: rows                                   3                                            3                                           
OK        appdb    company_view: checksum                               26073767208078082822 30939291170058142146    26073767208078082822 30939291170058142146   
OK        appdb    domain_event_entry: columns                          10 d39a8b7c                                  10 d39a8b7c                                 
OK        appdb    domain_event_entry: rows                             15                                           15                                          
OK        appdb    domain_event_entry: checksum                         130080630576164745225 126318222763477604256  130080630576164745225 126318222763477604256 
OK        appdb    hibernate_sequence: columns                          1 9b930181                                   1 9b930181                                  
OK        appdb    hibernate_sequence: rows                             5                                            5                                           
OK        appdb    hibernate_sequence: checksum                         2988668962642496875 29546495120939695150     2988668962642496875 29546495120939695150    
OK        appdb    item_entry: columns                                  5 a51fb060                                   5 a51fb060                                  
OK        appdb    item_entry: rows                                     437                                          437                                         
OK        appdb    item_entry: checksum                                 3949583343671977984736 4144846173798770579744 3949583343671977984736 4144846173798770579744
OK        appdb    order_book_view: columns                             3 72ad6e36                                   3 72ad6e36                                  
OK        appdb    order_book_view: rows                                3                                            3                                           
OK        appdb    order_book_view: checksum                            14343067556891309385 24118625313350172090    14343067556891309385 24118625313350172090   
OK        appdb    order_view: columns                                  7 903d6270                                   7 903d6270                                  
OK        appdb    order_view: rows                                     843                                          843                                         
OK        appdb    order_view: checksum                                 7801846459141974898352 7628313001502536045613 7801846459141974898352 7628313001502536045613
OK        appdb    orderentry_buy: columns                              2 3545e299                                   2 3545e299                                  
OK        appdb    orderentry_buy: rows                                 1                                            1                                           
OK        appdb    orderentry_buy: checksum                             12833416927510799485 4003075592229837602     12833416927510799485 4003075592229837602    
OK        appdb    orderentry_sell: columns                             2 3545e299                                   2 3545e299                                  
OK        appdb    orderentry_sell: rows                                2                                            2                                           
OK        appdb    orderentry_sell: checksum                            18615089877725253306 19307324125010203360    18615089877725253306 19307324125010203360   
OK        appdb    portfolio_item_possession: columns                   3 9b33a38f                                   3 9b33a38f                                  
OK        appdb    portfolio_item_possession: rows                      15                                           15                                          
OK        appdb    portfolio_item_possession: checksum                  131895622412312919679 109883476877395884356  131895622412312919679 109883476877395884356 
OK        appdb    portfolio_item_reserved: columns                     3 231ae46a                                   3 231ae46a                                  
OK        appdb    portfolio_item_reserved: rows                        2                                            2                                           
OK        appdb    portfolio_item_reserved: checksum                    13634892054918193429 30267321574047229008    13634892054918193429 30267321574047229008   
OK        appdb    portfolio_view: columns                              4 ddd6b76f                                   4 ddd6b76f                                  
OK        appdb    portfolio_view: rows                                 9                                            9                                           
OK        appdb    portfolio_view: checksum                             83191271729471349222 88421485927236519530    83191271729471349222 88421485927236519530   
OK        appdb    saga_entry: columns                                  4 c7705012                                   4 c7705012                                  
OK        appdb    saga_entry: rows                                     0                                            0                                           
OK        appdb    saga_entry: checksum                                 0 0                                          0 0                                         
OK        appdb    snapshot_event_entry: columns                        9 68ffdfa6                                   9 68ffdfa6                                  
OK        appdb    snapshot_event_entry: rows                           0                                            0                                           
OK        appdb    snapshot_event_entry: checksum                       0 0                                          0 0                                         
OK        appdb    token_entry: columns                                 6 c113b22a                                   6 c113b22a                                  
OK        appdb    token_entry: rows                                    0                                            0                                           
OK        appdb    token_entry: checksum                                0 0                                          0 0                                         
OK        appdb    trade_executed_view: columns                         5 c197b473                                   5 c197b473                                  
OK        appdb    trade_executed_view: rows                            420                                          420                                         
OK        appdb    trade_executed_view: checksum                        3693154220389217469391 3829779817711839945576 3693154220389217469391 3829779817711839945576
OK        appdb    transaction_view: columns                            9 4394c391                                   9 4394c391                                  
OK        appdb    transaction_view: rows                               843                                          843                                         
OK        appdb    transaction_view: checksum                           7722084309146470064030 7771265182692801209867 7722084309146470064030 7771265182692801209867
OK        appdb    user_view: columns                                   3 6bfb8be4                                   3 6bfb8be4                                  
OK        appdb    user_view: rows                                      9                                            9                                           
OK        appdb    user_view: checksum                                  78000680132620696379 90706355301362964958    78000680132620696379 90706355301362964958   
OK        appdb    domain_event_entry: max(global_index)                15                                           15                                          
OK        appdb    domain_event_entry: aggregates                       12                                           12                                          
OK        appdb    domain_event_entry: per-aggregate max(sequence_number) 137937454533941963217 116607371452360417577  137937454533941963217 116607371452360417577 
OK        appdb    snapshot_event_entry: aggregates                     0                                            0                                           
OK        appdb    snapshot_event_entry: per-aggregate max(sequence_number) 0 0                                          0 0                                         
84 checks, 0 mismatches
== 4. Start the apps on the copy (fresh RabbitMQ, as on GKE)
trading-engine UP
trader-app UP
o.f.core.internal.command.DbMigrate      : Schema `appdb` is up to date. No migration necessary.
o.f.core.internal.command.DbMigrate      : Schema `enginedb` is up to date. No migration necessary.
PASS: query API on the copy is identical to the source (23 lines: users, companies, order books, portfolios, transactions)

== 5. New trade on the copy (event store keeps appending after the copied global_index / sequence numbers)
allard before {"amountOfMoney":101066,"pivotal":50}, after {"amountOfMoney":100373,"pivotal":57} (expected {"amountOfMoney":100373,"pivotal":57}); ben before {"amountOfMoney":101050}
enginedb max(global_index): 7185 after the copy, 7202 after the new trade
PASS: new trade executed on the copied event store

== Timings (seed rounds: 300)
step  db        seconds  rows  bytes
dump  enginedb  0.1      6350  4707516
load  enginedb  0.6      6350  4707516
dump  appdb     0.1      2607  285989
load  appdb     0.6      2607  285989
copy.sh (dump + load, both databases): 4s; verify.sh: 7s
freeze start -> both apps healthy on the copy: 56s
280K	target/migrate-data/rehearsal/dump/appdb.sql
4.5M	target/migrate-data/rehearsal/dump/enginedb.sql
EXIT 0

Testes negativos na mesma stack (KEEP_STACK=1), após recarregar a cópia (84 checks, 0 mismatches):

# hibernate_sequence: origem [100,100], destino [1,1]
MISMATCH  enginedb hibernate_sequence: checksum   33775411952379512412 1127963119794823786   28360438375423035140 1988516483934390582
24 checks, 1 mismatches   -> verify exit 1
# coluna extra com dados no destino: alter table user_view add legacy_name ...
MISMATCH  appdb    user_view: columns             3 6bfb8be4   4 3957d786
60 checks, 1 mismatches   -> verify exit 1

Devin-Org: engineering

Link to Devin session: https://devin-gtm.devinenterprise.com/sessions/bd4f4473f2c84548bb64c93aaced0978
Open in Devin Desktop: https://devin-gtm.devinenterprise.com/desktop/session/bd4f4473f2c84548bb64c93aaced0978?variant=devin
Requested by: @matthewguerra-cog


Devin Review

Status Commit
⚪ Not started —

Run Devin Review

Enable auto-review to review your pull requests automatically.

Devin Review (Staging)


Devin Review

… to Cloud SQL

mysqldump path (preflight.sh, copy.sh, verify.sh), DMS notes and the s6.1 runbook section,
and rehearse.sh: MySQL 5.7 source seeded through the buy/sell API copied into the
Flyway-baselined MySQL 8.0 target, all checks matching, apps validated and trading on the copy.
CI job migrate-data runs the rehearsal.

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration Bot and others added 3 commits November 5, 2026 16:50
…XOR), so duplicate rows such as hibernate_sequence count

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
…only when asked for (local Auth Proxy)

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
…p them

Co-Authored-By: Matthew Guerra <matthew.guerra@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Author

Resposta ao flag do Devin Review que não foi postado como thread ("Drain trades before stopping their consumer", docs/migration/cutover-runbook.md): procede, corrigido em 3303d54. O consumidor da fila trades é o trader-app (AmqpConfiguration, @RabbitListener(queues = "trades")), e o runbook mandava parar os apps antes de conferir a fila. Nova ordem no freeze: (1) tirar as rotas com os dois apps no ar, (2) esperar messages (prontas + não confirmadas) = 0 na trades e as contagens de domain_event_entry pararem de mudar, (3) só então cf stop nos dois. É o que o rehearse.sh já fazia (wait_settled antes de stop_apps).

Written by Devin

@devin-ai-integration
devin-ai-integration Bot merged commit c0b0469 into master Nov 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant