Skip to content

Read worker information in load_fnc and request_fnc #1032

Description

@longcw

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions