• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

goto / compass / 5574232397
88%
main: 81%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.9.6
DEFAULT BRANCH: main
Ran 17 Jul 2023 09:59AM UTC
Jobs 1
Files 72
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2023 09:55AM UTC coverage: 87.763% (+0.4%) from 87.409%
5574232397

Pull #45

github

sudo-suhas
feat: add optional async worker backed by PG

- Bump Go version {1.16 => 1.20} in go.mod and CI.
- Add new command 'compass worker start' to run the async worker as a
  process.
- Add the pkg/worker pkg for a async worker implementation backed by
  PostgreSQL. Add sub pkg pgq for enqueueing and processing jobs. Add
  migrations for tables jobs_queue and dead_jobs.
- Add internal/workermanager pkg for encapsulating Compass service
  specific enqueue and job functions.
- Introduce async jobs for indexing asset into Elasticsearch and
  deleting an asset from Elasticsearch. Async jobs are enqueued and
  processed only if it is enabled in the config. Otherwise, the jobs are
  executed in-situ.
Pull Request #45: feat: add optional async worker backed by PG

562 of 562 new or added lines in 14 files covered. (100.0%)

5802 of 6611 relevant lines covered (87.76%)

22.45 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.75
internal/workermanager/in_situ_worker.go
1
95.0
pkg/worker/backoff_strategy.go
3
61.64
-5.5% internal/store/postgres/postgres.go
4
93.44
internal/workermanager/discovery_worker.go
5
95.61
pkg/worker/worker.go
8
82.98
internal/workermanager/worker_manager.go
8
87.88
pkg/worker/pgq/pgq_processor.go
14
87.93
pkg/worker/pgq/pgq_utils.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
61.64
-5.5% internal/store/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 5574232397.1 17 Jul 2023 09:59AM UTC 72
87.76
GitHub Action Run
Source Files on build 5574232397
  • Tree
  • List 72
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #45
  • PR Base - main (#5472785716)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc