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

[BUG] Cannot schedule multiple task on a given task type #118

Closed
mawandm opened this issue Jun 13, 2024 · 0 comments · Fixed by #122
Closed

[BUG] Cannot schedule multiple task on a given task type #118

mawandm opened this issue Jun 13, 2024 · 0 comments · Fixed by #122
Labels
bug Something isn't working

Comments

@mawandm
Copy link
Contributor

mawandm commented Jun 13, 2024

Nesis version

0.1.0,0.1.1

Describe the bug

Two datasources cannot be created with the same ingestion schedule

To reproduce

  1. Create a datasource ds1 and schedule */5 * * * *
  2. Creating another datasource ds2 and schedule */5 * * * * gives the error Task already scheduled on this type

Expected behavior

Multiple datasources with the same schedule should be supported.

Screenshots

No response

Additional context

The constraint uq_task_type_schedule seems to be the culprit. It should be on parent_id and schedule rather than on task type and schedule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant