Skip to content

Commit

Permalink
Fix flaky bgw scheduler test
Browse files Browse the repository at this point in the history
Reconnect after adjusting configuration to ensure our session has
it applied.
  • Loading branch information
svenklemm committed Feb 7, 2025
1 parent 4fa5cf1 commit 25372dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsl/test/expected/bgw_scheduler_restart.out
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ SELECT pg_reload_conf();
t
(1 row)

\c
SHOW timescaledb.bgw_scheduler_restart_time;
timescaledb.bgw_scheduler_restart_time
----------------------------------------
1min
10s
(1 row)

-- Launcher is running, so we need to restart it for the scheduler
Expand Down
1 change: 1 addition & 0 deletions tsl/test/sql/bgw_scheduler_restart.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ SHOW timescaledb.bgw_scheduler_restart_time;
ALTER SYSTEM SET timescaledb.bgw_scheduler_restart_time TO '10s';
ALTER SYSTEM SET timescaledb.debug_bgw_scheduler_exit_status TO 1;
SELECT pg_reload_conf();
\c
SHOW timescaledb.bgw_scheduler_restart_time;

-- Launcher is running, so we need to restart it for the scheduler
Expand Down

0 comments on commit 25372dc

Please sign in to comment.