Fix travis and scheduler periodic task