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
Tasks that update the execution, e.g. the Labels task, are processed by the executor.
We can restrict the read function to only run on the Worker; this will raise an error when trying to use the read function in the Labels task with a friendly message pointing the user to process the labels in a different task e.g. in a Return task and pass to the Labels via outputs.
Context
Examples of where the processing could be expensive if the file is large and should happen on the worker:
anna-geller
changed the title
Validate that processing inputFiles and adding execution labels happens on the Worker
Raise an error when using the read function in the Labels task to ensure heavy processing is only performed by the Worker
Feb 25, 2024
anna-geller
changed the title
Raise an error when using the read function in the Labels task to ensure heavy processing is only performed by the Worker
Raise an error when using the read function on Executor to ensure heavy processing is only performed by the Worker
Feb 26, 2024
Suggested implementation
Tasks that update the execution, e.g. the
Labels
task, are processed by the executor.We can restrict the
read
function to only run on the Worker; this will raise an error when trying to use theread
function in theLabels
task with a friendly message pointing the user to process the labels in a different task e.g. in aReturn
task and pass to theLabels
via outputs.Context
Examples of where the processing could be expensive if the file is large and should happen on the worker:
Full example:
The text was updated successfully, but these errors were encountered: