autotest: move test_importer out of deploy script

test_importer is a time-consuming task in push-to-prod, Move it out of
push to prod, and make it as a cronjob running in the backend once a
day.

BUG=chromium:730830
TEST=unittest

Change-Id: I4aed9125ffee3cb93cdaf8abffe678439730b854
Reviewed-on: https://chromium-review.googlesource.com/537970
Commit-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
diff --git a/site_utils/deploy_server_local.py b/site_utils/deploy_server_local.py
index bc6e3de..16224fd 100755
--- a/site_utils/deploy_server_local.py
+++ b/site_utils/deploy_server_local.py
@@ -16,7 +16,6 @@
 import argparse
 import os
 import re
-import socket
 import subprocess
 import sys
 import time
@@ -31,11 +30,6 @@
 # How long after restarting a service do we watch it to see if it's stable.
 SERVICE_STABILITY_TIMER = 60
 
-# A list of commands that only applies to primary server. For example,
-# test_importer should only be run in primary master scheduler. If two servers
-# are both running test_importer, there is a chance to fail as both try to
-# update the same table.
-PRIMARY_ONLY_COMMANDS = ['test_importer']
 # A dict to map update_commands defined in config file to repos or files that
 # decide whether need to update these commands. E.g. if no changes under
 # frontend repo, no need to update afe.
@@ -341,11 +335,6 @@
     if cmds:
         print('Running update commands:', ', '.join(cmds))
         for cmd in cmds:
-            if (cmd in PRIMARY_ONLY_COMMANDS and
-                not AFE.run('get_servers', hostname=socket.getfqdn(),
-                            status='primary')):
-                print('Command %s is only applicable to primary servers.' % cmd)
-                continue
             update_command(cmd, dryrun=dryrun,
                            use_chromite_master=use_chromite_master)