2017-02-01 4 views
0

지연된 작업을 다시 시작하지 않고 디버깅하는 가장 좋은 방법은 무엇입니까?delayed_job이 다시 시작되지 않음

restart가 실행 중임을 나타내지 만 그레이핑에는 프로세스가 표시되지 않습니다.

$ RAILS_ENV=production ruby script/delayed_job -n3 --pid-dir=/dem/pids/ restart 
Warning: no instances running. Starting... 
Warning: no instances running. Starting... 
Warning: no instances running. Starting... 

$ ps -aux | grep delay 
produser 3471 0.0 0.0 7232 612 pts/4 S+ 10:28 0:00 tail -f delayed_job.log 
produser 4059 0.0 0.0 11740 928 pts/0 S+ 10:32 0:00 grep --color=auto delay 

$ RAILS_ENV=production ruby script/delayed_job -n3 --pid-dir=/dem/pids/ restart 
Warning: no instances running. Starting... 
Warning: no instances running. Starting... 
Warning: no instances running. Starting... 

delay_job.log 파일을 테일링하는 동안 단순히 재시작하고 자동으로 실패하는 처리를 보여줍니다.

2017-02-01T10:48:04-0800: [Worker(delayed_job.0 host:app pid:6257)] worker started 
2017-02-01T10:48:04-0800: [Worker(delayed_job.1 host:app pid:6267)] worker started 

답변

0

나는 내 자신의 질문에 대한 답을 찾았습니다. 누군가가 수색에서 찾아 낼 경우에 여기에서 기록.

같은 상황에서 자신을 발견하는 경우, 전경 (안 배경)에서 프로세스를 실행 을 시도

RAILS_ENV=production ruby script/delayed_job --pid-dir=/dem/pids/ run

출력했다 :

found unexpected end of stream while scanning a quoted scalar at line 165 column 14

에 Dj 소스의 결과가 포함되었습니다. Malformed yaml in handler could crash all delayed_job workers


위대한 리드였습니다.

  • 처리기/데이터 형식이 잘못된 경우 DJ가 자동으로 실패합니다.
  • DJ에서 전자 메일을 처리하는 경우 대량 처리기 열이있을 수 있습니다. 누군가 전자 메일을 전달하면 스레드가 포함되기 때문입니다. 예.

어떻게 했습니까? 이메일 처리기에 대한 질문은 delayed_jobs입니다.

결과는 무엇입니까? 괴상한 처리기를 가진 1 개의 직업.

도 아마도 query for the longest column 일 수 있습니다.

작업을 삭제하고 run 명령을 실행 한 후 정상적으로 처리를 시작했습니다.

관련 문제