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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/c/e/CellProfiler-HEAD/BatchProfiler/sql_jobs.py   CellProfiler(Download)
    else:
        raise RuntimeError("Failed to start job: No output from bsub")
    cursor = connection.cursor()
    statement = """insert into sql_job
                   (job_id, batch_id, sql_file)
                    order by start_timestamp desc
                    limit 1"""
    cursor = connection.cursor()
    try:
        statement = """select job_id, start_timestamp, stop_timestamp
    Raises an exception if no job is found.
    """
    cursor = connection.cursor()
    try:
        statement = """select stop_timestamp
    or None if no stop timestamp is recorded in the database
    """
    cursor = connection.cursor()
    try:
        statement = """select start_timestamp, stop_timestamp
    p.communicate()
    script_fd.close()
    cursor = connection.cursor()
    cursor.execute("""update sql_job 
                         set stop_timestamp=current_timestamp