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

Start tracking the schedule that generated a flow run with the CreatedBy field #13210

Open
abrookins opened this issue May 2, 2024 · 0 comments
Assignees

Comments

@abrookins
Copy link
Collaborator

We currently don't track which schedule created a flow run, but we'll need that information in the worker to determine if the worker should use a global concurrency limit.

We can use the CreatedBy column with a new value type instead of adding a new FK to flow_run. When the scheduler creates a scheduled flow run, it should capture the schedule ID like this:

created_by=CreatedBy(
  id=deployment_schedule.id,
  type="DEPLOYMENT_SCHEDULE",
  display_value="something something"
)
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

No branches or pull requests

2 participants