Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 250 for cleanup2 (0.07 seconds)

  1. docs/site-replication/run-ssec-object-replication.sh

    #!/usr/bin/env bash
    
    # shellcheck disable=SC2120
    exit_1() {
    	cleanup
    
    	echo "minio1 ============"
    	cat /tmp/minio1_1.log
    	echo "minio2 ============"
    	cat /tmp/minio2_1.log
    
    	exit 1
    }
    
    cleanup() {
    	echo -n "Cleaning up instances of MinIO ..."
    	pkill minio || sudo pkill minio
    	pkill -9 minio || sudo pkill -9 minio
    	rm -rf /tmp/minio{1,2}
    	echo "done"
    }
    
    cleanup
    
    export MINIO_CI_CD=1
    export MINIO_BROWSER=off
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Sep 24 08:03:58 GMT 2024
    - 9.9K bytes
    - Click Count (0)
  2. src/test/resources/thumbnail/test_generate_thumbnail.sh

    RED='\033[0;31m'
    GREEN='\033[0;32m'
    NC='\033[0m' # No Color
    
    # Test counters
    TESTS_PASSED=0
    TESTS_FAILED=0
    
    # Create output directory
    mkdir -p "${OUTPUT_DIR}"
    
    # Cleanup function
    cleanup() {
        rm -rf "${OUTPUT_DIR}"
    }
    trap cleanup EXIT
    
    # Test function
    run_test() {
        local test_name="$1"
        local expected_result="$2"
        shift 2
        local cmd=("$@")
    
        echo -n "Testing: ${test_name}... "
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 04 08:02:36 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. .github/workflows/codeql-analysis.yml

          if: ${{ matrix.language == 'java' && github.repository_owner != 'gradle' }}
          run: ./gradlew --init-script .github/workflows/codeql-analysis.init.gradle -S testClasses
    
        - name: Cleanup Gradle Daemons
          run: ./gradlew --stop
          if: ${{ matrix.language == 'java' }}
    
        # â„šī¸ Command-line programs to run using the OS shell.
        # 📚 https://git.io/JvXDl
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Dec 11 22:12:03 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

            assertEquals(4, thumbnailJob.numOfThreads);
        }
    
        // Test cleanup setter
        @Test
        public void test_cleanup() {
            assertFalse(thumbnailJob.cleanup);
    
            GenerateThumbnailJob result = thumbnailJob.cleanup();
    
            assertSame(thumbnailJob, result);
            assertTrue(thumbnailJob.cleanup);
        }
    
        // Test execute method with successful execution
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 19K bytes
    - Click Count (0)
  5. guava/src/com/google/common/cache/ForwardingCache.java

        return delegate().stats();
      }
    
      @Override
      @J2ktIncompatible
      public ConcurrentMap<K, V> asMap() {
        return delegate().asMap();
      }
    
      @Override
      public void cleanUp() {
        delegate().cleanUp();
      }
    
      /**
       * A simplified version of {@link ForwardingCache} where subclasses can pass in an already
       * constructed {@link Cache} as the delegate.
       *
       * @since 10.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

         * This marks the access results as processed and clears the list.
         *
         * @param accessResultList the list of access results to clean up
         * @return the time taken for the cleanup operation in milliseconds, or -1 if no cleanup was needed
         */
        private long cleanupAccessResults(final List<OpenSearchAccessResult> accessResultList) {
            if (!accessResultList.isEmpty()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 32.9K bytes
    - Click Count (0)
  7. docs_src/dependencies/tutorial008e_py310.py

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: str = Depends(get_username, scope="function")):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 289 bytes
    - Click Count (0)
  8. fastapi/.agents/skills/fastapi/references/dependencies.md

    * Other dependencies need their results (it's a sub-dependency)
    * The logic can be shared by multiple endpoints to do things like error early, authentication, etc.
    * They need to handle cleanup (e.g., DB sessions, file handles), using dependencies with `yield`
    * Their logic needs input data from the request, like headers, query parameters, etc.
    
    ## Dependencies with `yield` and `scope`
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

                                    } catch (Exception e) {
                                        // Ignore cleanup errors
                                    }
                                });
                    } catch (Exception e) {
                        // Ignore cleanup errors
                    }
                }
            }
        }
    
        @Nested
        @DisplayName("Integration with AbstractUpgradeGoal")
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            try {
                if (this.usageCount != null && this.usageCount.get() != 0 && this.open) {
                    log.warn("File handle was not properly closed, performing emergency cleanup: " + this);
                    if (this.creationBacktrace != null) {
                        log.warn(Arrays.toString(this.creationBacktrace));
                    }
                    emergencyCloseHandle();
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.4K bytes
    - Click Count (1)
Back to Top