MarlonAbeykoon opened a new issue #12808:
URL: https://github.com/apache/airflow/issues/12808


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the 
following questions.
   Don't worry if they're not all applicable; just try to include what you can 
:-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the 
context.
   
   -->
   
   **Apache Airflow version**:
   1.10.12
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   N/A
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: hardware 2.5 GHz Quad-Core 
Intel Core i7 16 GB
   - **OS** (e.g. from /etc/os-release): macOS Catelina 10.15.7 (19H15)
   - **Kernel** (e.g. `uname -a`): 19.6.0 Darwin Kernel Version 19.6.0: Thu Oct 
29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64 x86_64
   - **Install tools**:
   - **Others**: Python 3.6.12
   
   **What happened**:
   When use [this](https://github.com/simple-salesforce/simple-salesforce) 
library via an operator, I get this error 
   `{local_task_job.py:102} INFO - Task exited with return code 
Negsignal.SIGABRT`
   which causes the DAG to fail.
   The exact line that happens this is 
[here](https://github.com/simple-salesforce/simple-salesforce/blob/master/simple_salesforce/login.py#L200)
 when it tries to make an HTTP request.
   BUT this works fine when I test the task using the command `airflow test 
salesforce_sync salesforceSync 2020-02-28`
   issue only arises when it's executed in airflow. The webserver also prints 
the following error.
   ```
   objc[3861]: +[__NSCFConstantString initialize] may have been in progress in 
another thread when fork() was called.
   objc[3861]: +[__NSCFConstantString initialize] may have been in progress in 
another thread when fork() was called. We cannot safely call it or ignore it in 
the fork() child process. Crashing instead. Set a breakpoint on 
objc_initializeAfterForkError to debug.
   ```
   
   <!-- (please include exact error messages if you can) -->
   
   
   **What you expected to happen**:
   
   This should work as it works when I check the task using `test` command 
without the return code `Negsignal.SIGABRT` 
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   pip install simple-salesforce==1.10.1
   
   A dag task should call this
   
   ```
   from simple_salesforce import Salesforce
   sf = Salesforce(
               username='[email protected]',
               password='password',
               security_token='token',
               domain='test'
           )
   ```
   
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access 
to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using 
minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a 
youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an 
unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   This always happens for the said scenario but not others. Having a try-catch 
won't work.
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to