Effect CommunityEC
Effect Community2mo ago
15 replies
thewilkybarkid

Issue with `MachineId` Type and CockroachDB Compatibility

I'm just getting started with trying out Cluster/Workflow. I'm trying to get the example from the Workflow README working locally using CockroachDB as storage (rather than plain Postgres). After hacking migrations to not perform the LOCK TABLE (as CockroachDB doesn't support it), I end up with a ParseError when it registers a runner:
  ParseError: int & Brand<"MachineId">
  └─ Predicate refinement failure
     └─ Expected an integer, actual 1126924413308338200

Looking at the DB schema, it's stored as a bigint, but the type of MachineId is just a regular int. I've not found what generates this value yet, should it be a BigInt?
Was this page helpful?