jstanden / cerb

Cerb is a fully customizable, web-based platform for enterprise communication and process automation. Create high volume shared inboxes. Integrate with any API-based service and automate nearly any repetitive digital workflow using the specialized KATA language and browser-based coding tools. Production: https://github.com/cerb/cerb-release/
https://cerb.ai/
Other
79 stars 38 forks source link

Remove watcher links when disabling a worker #823

Open Hildy opened 5 years ago

Hildy commented 5 years ago

Well, not by default necessarily, but to have the option would be good. We'd discussed doing this in a maintenance task, after some specified delay.

jstanden commented 3 years ago

In patch:

delete from context_link where from_context = 'cerberusweb.contexts.worker' and from_context_id in (select id from worker where is_disabled=1);

delete from context_link where to_context = 'cerberusweb.contexts.worker' and to_context_id in (select id from worker where is_disabled=1);