Closed mattaltberg closed 2 years ago
Hey @bryantbiggs @antonbabenko can I get this added as well? I want to add job queues that don't have scheduling policies.
Hey @bryantbiggs, did you see my comment?
yes, I started to take a look and haven't come up with a solution that seems reasonable yet
It's tricky, we need a way to say we don't want the scheduling policy, and it has to be at the queue level. Curious to see what you come up with
@bryantbiggs I actually found a workaround, you can supply scheduling_policy_arn = null
when you define your job queue, and it works. Not sure this change is needed anymore (although scheduling policies will still be created)
@bryantbiggs done and ready
This PR is included in version 1.2.0 :tada:
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
With this, someone can use attach_scheduling_policy in their job_queue definition to skip over scheduling policy attachment.
Description
Right now, a scheduling policy is auto-attached to all job queues. Adding "attach_scheduling_policy" when defining people's job queues will override the default behaviour.
Motivation and Context
I don't want to always have a scheduling policy for my queues.
Breaking Changes
No, it uses lookup, and defaults to the original behaviour
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request