Skip to content

Commit

Permalink
A few adjustments on CeleryExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Dec 30, 2014
1 parent bf39f12 commit 34bb46f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if _EXECUTOR == 'LocalExecutor':
from airflow.executors.local_executor import LocalExecutor
DEFAULT_EXECUTOR = LocalExecutor()
elif _EXECUTOR == 'LocalExecutor':
elif _EXECUTOR == 'CeleryExecutor':
from airflow.executors.celery_executor import CeleryExecutor
DEFAULT_EXECUTOR = CeleryExecutor()
elif _EXECUTOR == 'SequentialExecutor':
Expand Down
2 changes: 1 addition & 1 deletion airflow/executors/celery_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def heartbeat(self):
if self.last_state[key] != async.state:
if async.state == celery_states.SUCCESS:
self.change_state(key, State.SUCCESS)
elif async.state in celery_states.FAILURE_STATES:
elif async.state == celery_states.FAILURE:
self.change_state(key, State.FAILED)
self.last_state[key] = async.state

Expand Down
1 change: 1 addition & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
source $AIRFLOW_HOME/env/bin/activate
export PYTHONPATH=$AIRFLOW_HOME
export AIRFLOW_CONFIG_PATH=$AIRFLOW_HOME/airflow/airflow.cfg
export PATH=$PATH:$AIRFLOW_HOME/airflow/bin

# Create the conf file from template if it doesn't exist
if [ ! -f $AIRFLOW_CONFIG_PATH ]; then
Expand Down

0 comments on commit 34bb46f

Please sign in to comment.