Conversation
|
I submitted the prefect patch upstream and it was accepted, so the patch is just temporary. |
|
@nviets just in case you are interested in this. |
|
@happysalada Thank you for your package and module, they are very helpful. I succeeded to get the worker service to work as well, and the crash I observed was mainly because the worker spawned another python process that didn't inherit any python package from the main prefect process. My approach was to wrap the prefect environment with a devShell, but maybe the better way could be to use |
|
I dont get why its trying to spin up an ephemeral server though, if i give it the api url, it should just call that. Im going to wrap the python for the missing uvicorn package this weekend to see what happens. |
dd7d571 to
8bc7fbb
Compare
prefect: add wrapper for dependencies
8bc7fbb to
f0fd7d7
Compare
|
@Shihira ok, I got to the next step, I'm getting a database error "could not open database". i guess I have to add the sqlite path to the readwrite of the worker maybe. |
908d9c1 to
2baeb00
Compare
prefect: add dburl to worker prefect: use same state directory prefect: fix worker environment prefect: create user prefect: use datadir for sqlite url prefect: make datadir writable prefect: don't protect home prefect fix sqlite url prefect: fix state directory prefect: user should not be systemuser prefect: set to normal user add prefect to systempackages try user with same name prefect use prefect_home do not set database url revert to dynamic user prefect: add tests prefect: fix port to string
2baeb00 to
ef12e14
Compare
|
Ok, I was getting errors when setting the database url environment variable. |
Things done
I'm close with the module but I still have errors on the worker.
I'm opening this in case someone has some cycles to help.
The prefect server is working but the worker is crashlooping.
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.