pinejs icon indicating copy to clipboard operation
pinejs copied to clipboard

Add async tasks

Open joshbwlng opened this issue 1 year ago • 0 comments

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:

  • Add support for FOR UPDATE SKIP LOCKED to abstractSql and update the polling query for tasks to be written in abstractSql

Depends on:

  • https://github.com/balena-io-modules/sbvr-types/pull/106
  • https://github.com/balena-io/pinejs/pull/775

joshbwlng avatar Feb 06 '24 08:02 joshbwlng