File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/ScheduledTasks/Client Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,6 @@ public async Task<IScheduleHandle> CreateScheduleAsync(ScheduleCreationOptions s
4444
4545 EntityInstanceId entityId = new EntityInstanceId ( nameof ( Schedule ) , scheduleConfigCreateOptions . ScheduleId ) ;
4646
47- // Check if schedule already exists
48- EntityMetadata < ScheduleState > ? metadata = await this . durableTaskClient . Entities . GetEntityAsync < ScheduleState > ( entityId ) ;
49- if ( metadata != null )
50- {
51- this . logger . ClientWarning ( "Schedule with ID {ScheduleId} already exists. Returning existing handle." , scheduleConfigCreateOptions . ScheduleId ) ;
52- return new ScheduleHandle ( this . durableTaskClient , scheduleConfigCreateOptions . ScheduleId , this . logger ) ;
53- }
54-
5547 await this . durableTaskClient . Entities . SignalEntityAsync ( entityId , nameof ( Schedule . CreateSchedule ) , scheduleConfigCreateOptions ) ;
5648
5749 return new ScheduleHandle ( this . durableTaskClient , scheduleConfigCreateOptions . ScheduleId , this . logger ) ;
You can’t perform that action at this time.
0 commit comments