Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for collective tasks #155

Merged
merged 1 commit into from
Dec 29, 2022

Conversation

mjagkow
Copy link
Collaborator

@mjagkow mjagkow commented Dec 29, 2022

  • When frontend requests for a new task it can specify the task is "collective".
  • Collective tasks are not closed automatically when an interaction has been submitted for them.
  • This allows to collect multiple interactions in public groups. This could also be used in personal tasks (e.g. in DM) to allow for multiple responses for one task/message.
  • Task can be closed manually by frontend using /api/v1/tasks/close method.

Copy link
Collaborator

@andreaskoepf andreaskoepf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, looks good. I think easiest would be to use the expiry option, but it is of course ok to have an explicit endpoint to close the task.

@yk yk merged commit 540f2d5 into LAION-AI:main Dec 29, 2022
@mjagkow mjagkow deleted the feature-collective-tasks branch December 30, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants