Description
How should the system handle when a cron job is set but the target channel is lost? Existing version will trigger the job and mark it as completed. But agent cannot sent message to user, replied message can only be found in TaskRunMessage table.
Steps to Reproduce
- Create a cron job via web-ui or telegram, target channel set to telegram
- Remove the telegram ID from profile
Description
How should the system handle when a cron job is set but the target channel is lost? Existing version will trigger the job and mark it as completed. But agent cannot sent message to user, replied message can only be found in TaskRunMessage table.
Steps to Reproduce