Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot] 2026-05-30 17:58:04 +00:00
parent 376b1e5c36
commit b16e0553cf

View file

@ -88,12 +88,11 @@ function CronjobDetailPage() {
async function remove() {
try {
await deleteMut.mutateAsync(job!.id);
const result = await deleteMut.mutateAsync(job!.id);
if (result.runtime_sync_warning) {
toast.warning("Excluída do painel; limpeza final do runtime pendente.");
} else {
toast.success("Excluída.");
const { error: syncError } = await syncAgentRuntime(job!.agent_instance_id, "cronjobs");
if (syncError) {
toast.warning("Automação removida, mas o runtime do agente não sincronizou.");
}
navigate({ to: "/painel/cronjobs" });