Open Sgt-Imalas opened 4 days ago
We can create a 'queue' table in PostgreSQL where when you request /worker/seed it will automatically return just one world and set the state to 'processing' so that we dont get two people generating the same world, additionally we can have a worker that runs every few minutes to check how long generation is taking, if it takes over x minutes for that worker to generate the seed then we return it back to the queue as that mod might have crashed
the mod side request must contain a list of active (and owned) dlcs, so they can only receive seeds they can actually run
When set to Random clusters, the mod should be able to fetch a specific seed from the API