job_id allows you to manually specify this job’s job_id.depends_on specifies another job (or list of jobs) that must complete before this.failure_ttl specifies how long failed jobs are kept (defaults to 1 year).This argument defaults to None (infinite TTL). ttl specifies the maximum queued time (in seconds) of the job before it’s discarded.Expired jobs will be automatically deleted. result_ttl specifies how long (in seconds) successful jobs and their.Furthermore, it can be a string with specify unit including hour, minute, second(e.g. Its default unit is second and it can be an integer or a string representing an integer(e.g. job_timeout specifies the maximum runtime of the job before it’s interruptedĪnd marked as failed. By default, these are popped out of the kwargs that will be passed to the In addition, you can add a few options to modify the behaviour of the queued Pattern is to name your queues after priorities (e.g. You can quite flexibly distribute work to your own desire. Notice the Queue('low') in the example above? You can use any queue name, so Q = Queue ( 'low', connection = redis_conn ) q.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |