mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-05-31 23:48:12 +00:00
Stress test cleanup
This commit is contained in:
parent
4529494e98
commit
f13a86441f
|
@ -77,6 +77,12 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
|
||||
let pool = Pool::connect(&env::var("DATABASE_URL")?).await?;
|
||||
|
||||
// Remove possible artifacts of previous canceled (ctrl+c) runs
|
||||
sqlx::query!("delete from mq_payloads")
|
||||
.execute(&pool)
|
||||
.await?;
|
||||
sqlx::query!("delete from mq_msgs").execute(&pool).await?;
|
||||
|
||||
let registry = JobRegistry::new(&[example_job]);
|
||||
|
||||
let _runner = registry
|
||||
|
|
Loading…
Reference in a new issue