Skip to content

How will a worker feed data from a WorkRequest into a Task object ?

While reviewing !18 (merged), I believe we have not successfully resolved !18 (comment 250479) and !18 (comment 250472). Thus I'm opening a new issue to discuss this separately.

It seems obvious to me that the job of a worker is to use the API to retrieve the data stored in a WorkRequest that was assigned to it, and then to instantiate the corresponding Task object (task = build_task_object(task_name, task_data)) and then to execute that (task.execute()).

However I don't see any provision in !18 (merged) to feed the work_request.task_data into the Task() object. It could made through the configure method if you don't want to add it to the constructor, but it doesn't make sense that it does not appear at all in the interface of the Task object.

@codehelp you likely have some other vision given that I don't see any of this. So, how do you expect the worker to feed the task_data extracted from the work request into the Task object?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information