How Create a Scheduler (e.g. to schedule tweets, or an api request)

后端 未结 4 823
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 00:45

I have a table of schedule items, they may be scheduled for the same time. I\'m wondering how to have them all execute at the correct time when:

The problem I see is

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 01:21

    I would use a Windows service to accomplish this. Then each of the items should be scheduled asynchronously using the BackgroundWorker process. This would allow all of the scheduled processes to be launched rapidly asynchronously so they don't collide and aren't depending on the previous one finishing before kicking off.

提交回复
热议问题