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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/e/selena-1.0.2/src/selena/services/management/commands/createpartitions.py   selena(Download)
from django.core.management.base import BaseCommand
 
from services.tasks import (
    _create_archive_partitions,
    _create_history_partitions,
    def handle(self, *args, **kwargs):
        async_mode = kwargs.get('async_mode', 0)
        if async_mode == 1:
            create_history_partitions()
            create_archive_partitions()