uranusjr commented on pull request #19787:
URL: https://github.com/apache/airflow/pull/19787#issuecomment-977165682
We can do something like
```python
def __init__(
self,
...,
num_of_dpus: Optional[int] = None,
...,
) -> None:
create_job_kwargs = create_job_kwargs or {}
if "WorkerType" in create_job_kwargs and "NumberOfWorkers" in
create_job_kwargs:
if num_of_dpus is not None:
raise ValueError("Cannot specify num_of_dpus with custom
WorkerType")
elif num_of_dpus is None:
self.num_of_dpus = 10
else:
self.num_of_dpus = num_of_dpus
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]