Beispiel #1
0
    def Args(parser):
        base.PAGE_SIZE_FLAG.RemoveFromParser(parser)
        base.LIMIT_FLAG.RemoveFromParser(parser)  # have our own --limit flag

        flags.AddQueueResourceFlag(parser, required=True, plural_tasks=True)
        flags.AddTaskLeaseDurationFlag(parser,
                                       helptext="""\
        The number of seconds for the desired new lease duration for all tasks
        pulled, starting from now. The maximum lease duration is 1 week.
        """)
        flags.AddFilterPulledTasksFlag(parser)
        flags.AddMaxTasksToPullFlag(parser)

        list_formats.AddListTasksFormats(parser)
 def Args(parser):
   list_formats.AddListTasksFormats(parser)
   flags.AddQueueResourceFlag(parser, plural_tasks=True)
   flags.AddLocationFlag(parser)
Beispiel #3
0
 def Args(parser):
     list_formats.AddListTasksFormats(parser)
     flags.AddQueueResourceFlag(parser, plural_tasks=True)
     flags.AddLocationFlag(parser)
     base.PAGE_SIZE_FLAG.SetDefault(parser, _DEFAULT_PAGE_SIZE)