0.1.17 • Published 6 months ago

@pgflow/edge-worker v0.1.17

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
6 months ago

A task queue worker for Supabase Edge Functions that extends background tasks with useful features.

!NOTE This project is licensed under AGPL v3 license and is part of pgflow stack. See LICENSING_OVERVIEW.md in root of this monorepo for more details.

What is Edge Worker?

Edge Worker processes messages from a queue and executes user-defined functions with their payloads. It builds upon Supabase Background Tasks to add reliability features like retries, concurrency control and monitoring.

Key Features

  • Reliable Processing: Retries with configurable delays
  • 🔄 Concurrency Control: Limit parallel task execution
  • 📊 Observability: Built-in heartbeats and logging
  • 📈 Horizontal Scaling: Deploy multiple edge functions for the same queue
  • 🛡️ Edge-Native: Designed for Edge Functions' CPU/clock limits

How It Works

Architecture Diagram

Edge Function Optimization

Edge Worker is specifically designed to handle Edge Function limitations:

  • Stops polling near CPU/clock limits
  • Gracefully aborts pending tasks
  • Uses PGMQ's visibility timeout to prevent message loss
  • Auto-spawns new instances for continuous operation
  • Monitors worker health with database heartbeats

Documentation

For detailed documentation and getting started guide, visit pgflow.dev.

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.14

6 months ago

0.1.13

6 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.23

6 months ago

0.0.22

6 months ago

0.0.21

6 months ago

0.0.20

6 months ago

0.0.19

6 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.10-prealpha.8

7 months ago

1.0.10-prealpha.8

7 months ago

0.0.10-prealpha.7

7 months ago

0.0.10-prealpha.6

7 months ago

0.0.10-prealpha.5

7 months ago

0.0.10-prealpha.4

7 months ago

0.0.10-prealpha.3

7 months ago

0.0.10-prealpha.2

7 months ago

0.0.10-prealpha.1

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7-prealpha.1

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.5-prealpha.2

7 months ago

0.0.5-prealpha.1

7 months ago

0.0.5-prealpha.0

7 months ago