crowdflower.worker

class crowdflower.worker.Worker(job, client=None, **data)

CrowdFlower Worker.

Parameters:
bonus(amount, reason=None)

Pay Worker a bonus of amount cents. Optionally include a message stating the reason of the bonus.

Parameters:
  • amount (int) – Amount in cents
  • reason (str) – Include a message with the bonus
deflag(deflag)

De-flags a Worker with the reason deflag.

Parameters:deflag (str) – De-flag reason
flag(flag, persist=False)

Flags and prevents a Worker from completing the Job with the reason flag. Existing judgments will not be thrown away. If persist is se to True, then the Worker is flagged out from all Jobs.

Parameters:
  • flag (str) – Flag reason
  • persist (bool) – If True, flag in all Jobs (default False)
notify(message)

Notify a Worker contributor with the message. The message appears in the workers dashboard.

Parameters:message (str) – Message to Worker
reject()

Prevents Worker from completing jobs and removes all judgments.

Care should be taken since a finalized Job cannot collect new judgments to replace the missing data.

This feature is only available to Pro and Enterprise users.