-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Worker - Warning when use of identifiers. #896
Conversation
Sounds like a reasonable approach to me. We can't currently statically determine that an activity's parameters will be within the allowed range for the command. Related question - what happens if an activity argument turns out to be out of range for the given command? Will the service still produce SEQ JSON, or will it abort with an error? |
c6fb4a5
to
e26ca10
Compare
@mattdailis The service will still produce a SeqJson file. It will just fail downstream at the seqgen level as seqgen will say the values is out of range. |
e26ca10
to
4a91f68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT if @mattdailis is alright with it as well. Thank you!
…f variables. ex. let temp = 100 C.PREHEAT_OVEN(temp) #ERROR now C.PREHEAT_OVEN(temp) #warning
4a91f68
to
8baa494
Compare
Fix the bug where the custom worker will throw an error for the use of variables. ex. let temp = 100 C.PREHEAT_OVEN(temp) #ERROR now C.PREHEAT_OVEN(temp) #warning
Fix the bug where the custom worker will throw an error for the use of variables. ex. let temp = 100 C.PREHEAT_OVEN(temp) #ERROR now C.PREHEAT_OVEN(temp) #warning
Closes #897
During expansion logic, I observed that when the user attempts to utilize the activity's parameters as command arguments, the custom worker throws an error. This occurs because it endeavors to assess the value of the parameters, which haven't been defined yet.
Unfortunately, the custom worker lacks the capability to evaluate identifiers without compiling the user code at runtime, which is not a viable option.
To address this, I have implemented a warning in case this situation arises.
ex.
previous
now