balena-io / pinejs

Generate rest APIs from natural language models
Apache License 2.0
62 stars 10 forks source link

Add async tasks #739

Closed joshbwlng closed 2 weeks ago

joshbwlng commented 7 months ago

Change-type: minor


Spec: https://balena.fibery.io/Inputs/Research/PineJS-Async-Tasks-483

Testing locally:

docker-compose -f docker-compose.npm-test.yml up -d
export DATABASE_URL=postgres://docker:docker@localhost:5431/postgres
export PINEJS_QUEUE_CONCURRENCY=1
TZ=UTC npm run mocha test/08-tasks.test.ts

Follow-ups:


Depends on: