You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some use cases, we want to determine the workload based on the activate jobs in the worker. For now the only way to do this is to modify the run_worker in cli to create a Worker first then manually replace the opts.load_fnc and opts.request_fnc.
Maybe adding a worker arg to these two methods is not a good idea, I wonder if we can make cli.run_app accept a "before_run_hook" that takes worker as input to modify these methods in that hook.
The text was updated successfully, but these errors were encountered:
For some use cases, we want to determine the workload based on the activate jobs in the worker. For now the only way to do this is to modify the run_worker in cli to create a
Worker
first then manually replace theopts.load_fnc
andopts.request_fnc
.Maybe adding a worker arg to these two methods is not a good idea, I wonder if we can make
cli.run_app
accept a "before_run_hook" that takes worker as input to modify these methods in that hook.The text was updated successfully, but these errors were encountered: