$ curl -X POST -H 'Content-Type: application/json' -d @sample/jobs/simple.json localhost:8080/api/jobs -i
HTTP/1.1 201 Created
content-length: 0
date: Sat, 19 Mar 2022 10:02:37 GMT
$ curl -i localhost:8080/api/projects/4fb168e4-b963-431d-85b6-ac108542c036/jobs
HTTP/1.1 200 OK
content-type: application/json
content-length: 209
date: Sat, 19 Mar 2022 10:03:50 GMT
[{"job_id":"51c35e5d-e777-4797-b91b-2526bd4bafdc","name":"simple_job","description":"a simple job to test that waterwheel is working","paused":false,"success":78,"running":0,"failure":0,"waiting":0,"error":0}]
Description
Projects with jobs cannot be deleted. A 500 error is returned as a result of a foreign key constraint violation
job_project_id_fkey.Expected Behavior
Project is deleted or marked inactive. Is it safe to just immediately cascade delete everything out of the database? Could there be issues with inflight / enqueued tasks?
Steps to reproduce
Logs