crowdflower.worker¶
-
class
crowdflower.worker.
Worker
(job, client=None, **data)¶ CrowdFlower Worker.
Parameters: - job (crowdflower.job.Job) –
Job
instance owning thisWorker
- client (crowdflower.client.Client) –
Client
instance - data (dict) – Attributes
-
bonus
(amount, reason=None)¶ Pay
Worker
a bonus ofamount
cents. Optionally include a message stating thereason
of the bonus.Parameters: - amount (int) – Amount in cents
- reason (str) – Include a message with the bonus
-
flag
(flag, persist=False)¶ Flags and prevents a
Worker
from completing theJob
with the reasonflag
. Existingjudgments
will not be thrown away. Ifpersist
is se toTrue
, then the Worker is flagged out from all Jobs.Parameters: - flag (str) – Flag reason
- persist (bool) – If True, flag in all Jobs (default False)
- job (crowdflower.job.Job) –