def execute(self):
        log = logging.getLogger('django_vcs_watch.jobs.update_feeds')

        pidfile = getattr(settings, 'VCS_WATCH_PID_FILE', '/tmp/vcswatch_update_feeds.pid')

        if os.path.exists(pidfile):
            pid = int(open(pidfile).read())
            if os.path.exists('/proc/%d' % pid):
                log.warning('Job already running with pid %d (pidfile "%s" exists)' % (pid, pidfile))
                return

        f = open(pidfile, 'w')
        try:
            f.write(str(os.getpid()))
        finally:
            f.close()

        try:
            while True:
                if self.update_repositories():
                    self.update_feeds()
                time.sleep(DELAY_BETWEEN_UPDATE_CHECK)
        finally:
            os.remove(pidfile)
dataset/ETHPy150Open svetlyak40wt/django-vcs-watch/src/django_vcs_watch/jobs/hourly/update_feeds.py/Job.execute/original