You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/05 10:36:24 UTC

[GitHub] [airflow] FHoffmannCode opened a new pull request #14092: fix running local task with --pickle

FHoffmannCode opened a new pull request #14092:
URL: https://github.com/apache/airflow/pull/14092


   Running tasks with command `airflow tasks run <dag_id> <task_id> <start_date> --local --pickle <pickle_id>`
   fails because in `airflow/airflow/cli/commands/task_command.py::task_run` method the `dag` is not `None` so error is thrown.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] FHoffmannCode commented on a change in pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
FHoffmannCode commented on a change in pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#discussion_r570964562



##########
File path: airflow/task/task_runner/standard_task_runner.py
##########
@@ -82,9 +82,10 @@ def _start_by_fork(self):  # pylint: disable=inconsistent-return-statements
             setproctitle(proc_title.format(args))
 
             try:
-                args.func(args, dag=self.dag)
+                args.func(args, dag=None)

Review comment:
       yes




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] FHoffmannCode commented on pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
FHoffmannCode commented on pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#issuecomment-774031849


   Tests are failing on static check of file that I haven't touched in this PR 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#issuecomment-773997775


   [The Workflow run](https://github.com/apache/airflow/actions/runs/540202235) is cancelling this PR. It has some failed jobs matching ^Pylint$,^Static checks,^Build docs$,^Spell check docs$,^Backport packages$,^Provider packages,^Checks: Helm tests$,^Test OpenAPI*.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#issuecomment-774482443


   The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] FHoffmannCode commented on a change in pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
FHoffmannCode commented on a change in pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#discussion_r570964562



##########
File path: airflow/task/task_runner/standard_task_runner.py
##########
@@ -82,9 +82,10 @@ def _start_by_fork(self):  # pylint: disable=inconsistent-return-statements
             setproctitle(proc_title.format(args))
 
             try:
-                args.func(args, dag=self.dag)
+                args.func(args, dag=None)

Review comment:
       yes and yes




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#issuecomment-805379368


   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] turbaszek commented on a change in pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
turbaszek commented on a change in pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#discussion_r570875786



##########
File path: airflow/task/task_runner/standard_task_runner.py
##########
@@ -82,9 +82,10 @@ def _start_by_fork(self):  # pylint: disable=inconsistent-return-statements
             setproctitle(proc_title.format(args))
 
             try:
-                args.func(args, dag=self.dag)
+                args.func(args, dag=None)

Review comment:
       ```suggestion
                   args.func(args)
   ```
   
   Also should we remove `self.dag` from constructor? It seems to be added in the same change #7090




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] closed pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #14092:
URL: https://github.com/apache/airflow/pull/14092


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] FHoffmannCode removed a comment on pull request #14092: fix running local task with --pickle

Posted by GitBox <gi...@apache.org>.
FHoffmannCode removed a comment on pull request #14092:
URL: https://github.com/apache/airflow/pull/14092#issuecomment-774031849


   Tests are failing on static check of file that I haven't touched in this PR 


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org