Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed Oct 5, 2024
1 parent 546bfba commit 49ab8ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/webapp/app/v3/services/triggerScheduledTask.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export class TriggerScheduledTaskService extends BaseService {
if (!instance.taskSchedule.active) {
shouldTrigger = false;
} else if (instance.environment.organization.deletedAt) {
logger.debug("Organization is deleted, disabling schedule", {
instanceId,
scheduleId: instance.taskSchedule.friendlyId,
organizationId: instance.environment.organization.id,
});

await this._prisma.taskSchedule.update({
where: {
id: instance.taskSchedule.id,
Expand Down

0 comments on commit 49ab8ca

Please sign in to comment.