Tasks
The tasks contain all of the related code required to set up a task run.
dest | type | default | help | choices | required |
---|---|---|---|---|---|
task_name | unknown | ??? | Grouping to launch this task run under, none defaults to the blueprint type. | None | False |
task_title | str | ??? | Display title for your task on the crowd provider. | None | True |
task_description | str | ??? | Longer form description for what your task entails. | None | True |
task_reward | float | ??? | Amount to pay per worker per unit, in dollars. | None | True |
task_tags | str | ??? | Comma seperated tags for workers to use to find your task. | None | True |
task_lifetime_in_seconds | int | 2678400 | The time that the task will last for before expiring. | None | False |
assignment_duration_in_seconds | int | 1800 | Time that workers have to work on your task once accepted. | None | False |
no_submission_patience | int | 43200 | How long to wait between task submissions before shutting the run down for a presumed issue. Value in seconds, default 12 hours. | None | False |
allowed_concurrent | int | 0 | Maximum units a worker is allowed to work on at once. (0 is infinite). | None | True |
maximum_units_per_worker | int | 0 | Maximum tasks of this task name that a worker can work on across all tasks that share this task_name. (0 is infinite). | None | False |
max_num_concurrent_units | int | 0 | Maximum units that will be released simultaneously, setting a limit on concurrent connections to Mephisto overall. (0 is infinite). | None | False |
submission_timeout | int | 600 | Time that mephisto will wait after marking a task done before abandoning waiting for the worker to actually press submit. | None | False |
post_install_script | str | The name of a shell script in your webapp directory that will run right after npm install and before npm build. This can be useful for local package development where you would want to link a package after installing dependencies from package.json. | None | False | |
force_rebuild | bool | False | Determines if npm build should be ran every time the task is ran. By default there is an optimization that only builds the webapp when there is a change in its contents. It would make sense to set this to true when doing local package development as you want to force a rebuild after running the post_install_script. | None | False |
resume_incomplete_run | unknown | False | Resume incomplete or interrupted TaskRun if it exists. | None | False |
aux_parameters | unknown | <dataclasses._MISSING_TYPE object at 0x7f5887c1f430> | Any auxiliary parameter you need to pass for your task. | None | False |