bbovenzi commented on code in PR #47627:
URL: https://github.com/apache/airflow/pull/47627#discussion_r1989580570
##########
airflow/ui/src/components/Menu/RunBackfillForm.tsx:
##########
@@ -83,6 +87,14 @@ const RunBackfillForm = ({ dag, onClose }:
RunBackfillFormProps) => {
const dataIntervalEnd = watch("to_date");
const onSubmit = (fdata: BackfillPostBody) => {
+ if (unpause && dag.is_paused) {
+ togglePause({
+ dagId: dag.dag_id,
+ requestBody: {
+ is_paused: !dag.is_paused,
Review Comment:
Other way around would be `false` but sure!
##########
airflow/ui/src/components/Menu/RunBackfillForm.tsx:
##########
@@ -83,6 +87,14 @@ const RunBackfillForm = ({ dag, onClose }:
RunBackfillFormProps) => {
const dataIntervalEnd = watch("to_date");
const onSubmit = (fdata: BackfillPostBody) => {
+ if (unpause && dag.is_paused) {
+ togglePause({
+ dagId: dag.dag_id,
+ requestBody: {
+ is_paused: !dag.is_paused,
Review Comment:
Other way around. It would be `false` but sure!
--
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]