Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .woodpecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ steps:
- "# If you can't see all output, then use the download button"
when:
- event: pull_request
status: failure
status: [failure]

publish_release_docker:
image: woodpeckerci/plugin-docker-buildx
Expand Down Expand Up @@ -295,7 +295,7 @@ steps:
- "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: [pull_request, tag]
status: failure
status: [failure]

notify_on_tag_deploy:
image: alpine:3
Expand All @@ -312,3 +312,6 @@ services:
environment:
POSTGRES_USER: lemmy
POSTGRES_PASSWORD: password
# Woodpecker's services ending is now causing pipeline failures:
# https://github.com/woodpecker-ci/woodpecker/issues/6372
failure: ignore
6 changes: 3 additions & 3 deletions crates/db_schema/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ pub async fn build_db_pool() -> LemmyResult<ActualDbPool> {
.max_size(pool_size)
.runtime(Runtime::Tokio1)
.timeouts(Timeouts {
wait: Some(Duration::from_secs(1)),
create: Some(Duration::from_secs(5)),
recycle: Some(Duration::from_secs(5)),
wait: Some(Duration::from_secs(30)),
create: Some(Duration::from_secs(60)),
recycle: Some(Duration::from_secs(60)),
})
// Limit connection age to prevent use of prepared statements that have query plans based on
// very old statistics
Expand Down