reanahub / reana-server

REANA API server
http://reana-server.readthedocs.io/
MIT License
5 stars 37 forks source link

rest: move some of the logic to r-w-c to keep a clear boundary between r-s and r-w-c #508

Open audrium opened 2 years ago

audrium commented 2 years ago

While implementing workspace retention rules population to the database (see this PR), all the logic to parse and validate the rules had to be kept inside reana-server, since when we restart a workflow all the workflow cloning is done there (while it technically should be done in r-w-c).

It would be good to move all of this logic (workspace retention rules parsing and workflow cloning when restarting, maybe potentially something else) to reana-workflow-controller to keep a clear boundary between reana-server and reana-workflow-controller.

VMois commented 2 years ago

Related https://github.com/reanahub/reana-server/issues/478