denielchiang / line_reminder

Reminder using LINE Notify
1 stars 0 forks source link

change default quantum run_strategy to local(1 instance only) #16

Closed denielchiang closed 1 year ago

denielchiang commented 1 year ago

ChatGPT😈 says:

In the context of Quantum for Elixir's cron job scheduling, the "Local Node" run strategy refers to executing the cron jobs on the same Elixir node where the Quantum scheduler is running.

When using the "Local Node" strategy, Quantum runs the scheduled jobs directly on the same node without distributing the workload across multiple nodes or processes. This means that the jobs will be executed within the same Elixir runtime where the Quantum scheduler is running.

Using the "Local Node" strategy can be beneficial in certain scenarios. For example, if you have a relatively small number of cron jobs or if the jobs require access to local resources or state that is only available on the same Elixir node.

However, it's important to note that using the "Local Node" strategy can introduce limitations in terms of scalability and fault tolerance. If the node running the Quantum scheduler goes down or becomes unresponsive, the cron jobs will also be affected. Additionally, if you have a large number of cron jobs that require significant processing power, using a single node may not be sufficient to handle the workload.

In summary, the "Local Node" run strategy in Quantum for Elixir's cron job scheduling means that the jobs are executed on the same Elixir node where the Quantum scheduler is running, providing direct access to local resources but with potential scalability and fault tolerance limitations.

Let's take a try on this sloution.