Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/AsyncStageout-HEAD/src/python/AsyncStageOut/DBSPublisher.py   AsyncStageout(Download)
"""
from WMCore.Agent.Harness import Harness
from AsyncStageOut.PublisherDaemon import PublisherDaemon
import logging
import threading
                      %str(self.config.DBSPublisher.pollInterval) )
        myThread.workerThreadManager.addWorker( \
                              PublisherDaemon(self.config), \
                              self.config.DBSPublisher.pollInterval \
                            )

src/a/s/AsyncStageout-HEAD/test/python/AsyncStageOut_t/AsyncTransfer_t.py   AsyncStageout(Download)
 
from AsyncStageOut.TransferDaemon import TransferDaemon
from AsyncStageOut.PublisherDaemon import PublisherDaemon
from AsyncStageOut.LFNSourceDuplicator import LFNSourceDuplicator
from AsyncStageOut.TransferWorker import TransferWorker
        all_active_files = self.db.loadView('DBSPublisher', 'publish', query)['rows']
        assert len(all_active_files) == 5
        Publisher = PublisherDaemon( config = self.config )
        Publisher.algorithm( )
        all_active_files = self.db.loadView('DBSPublisher', 'publish', query)['rows']