-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Problem Statement
Currently, the callback fn is only passed the name of the executable/fn in the job. If I'm dealing with multiple jobs using the same executable that differ only in args, then the callback fn can't help me disambiguate which job ran.
Sample Usecase:
async_job my_env_worker "startEnv EnvA";
async_job my_env_worker "startEnv EnvB";
I'd like to have my callbackFn to provide some info on the env (envA vs envB) as well. However, $1 in callbackFn is just startEnv today. Is this possible today?
Alternatives
⚠️ I could have a separate worker per job args which is probably not how the library was meant to be used.- 🚫 Processing individual jobs or attaching callbacks per request can result in race-conditions etc.
Metadata
Metadata
Assignees
Labels
No labels