How to assign a cron job to a specific model? #4292
|
How can I ensure that a specific cron job always uses a specific model instead of the default one? Is there any way to do that? From the documentation, I don't currently see a way to directly assign a specific model to a specific cron job, but maybe there is a workaround? |
Replies: 3 comments 9 replies
|
Currently, there is no way to assign a specific model to a particular cron task. |
|
The current cron task is bound to the session, and the model of each session can be freely switched without affecting each other. |
|
You can do this by using a separate topic/session for that cron job:
The cron job is bound to the session where it was created, and it inherits that session’s model preset. Other topics/sessions can use a different preset without affecting it. However, multiple cron jobs created in the same session share that session’s model selection. So if two cron jobs need different models, create them in two separate topics/sessions and select the corresponding preset in each one. The preset itself is configured in There is currently no per-job |
The current cron task is bound to the session, and the model of each session can be freely switched without affecting each other.