Giter Club home page Giter Club logo

Comments (4)

duyawen8 avatar duyawen8 commented on June 16, 2024

I found that the same type job can set currency, but harbor is not set. Is it possible to limit the currency?

// Max currency of the job. Unlike the WorkerPool concurrency, it controls the limit on the number jobs of that type
// that can be active at one time by within a single redis instance.
//
// The default value is 0, which means "no limit on job concurrency".
MaxCurrency() uint

// Put into the pool

w.pool.JobWithOptions(

    name,

    work.JobOptions{

        MaxFails:       theJ.MaxFails(),

        MaxConcurrency: theJ.MaxCurrency(),

        Priority:       job.Priority().For(name),

        SkipDead:       true,

    },

    // Use generic handler to handle as we do not accept context with this way.

    func(job *work.Job) error {

        return redisJob.Run(job)

   },

)


// Job of running retention process

type Job struct{}

// MaxCurrency is implementation of same method in Interface.

func (pj *Job) MaxCurrency() uint {

   return 0

}

from harbor.

wy65701436 avatar wy65701436 commented on June 16, 2024

since we did a lot of enhancements on harbor since v2.3, please try the same scenario on the latest release.
And v2.3 is out of support now.

from harbor.

duyawen8 avatar duyawen8 commented on June 16, 2024

since we did a lot of enhancements on harbor since v2.3, please try the same scenario on the latest release. And v2.3 is out of support now.

The latest version is v2.10.0。Are v2.10.0 and v2.3.1 compatible? Whether the api and pgsql data table have changed?Our componment rely on Harbor api。

from harbor.

duyawen8 avatar duyawen8 commented on June 16, 2024

@wy65701436

from harbor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.