コード例 #1
0
        '<int:pk>/sqlupload_start/',
        views.sqlupload_start,
        name='sqlupload_start'),

    # Athena Upload/Merge
    path(
        '<int:pk>/athenaupload_start/',
        views.athenaupload_start,
        name='athenaupload_start'),

    # Upload/Merge
    path('upload_s2/', views.upload_s2, name='upload_s2'),

    path('upload_s3/', views.upload_s3, name='upload_s3'),

    path('upload_s4/', views.upload_s4, name='upload_s4'),

]

task_execute_factory.register_producer(
    models.Log.WORKFLOW_INCREASE_TRACK_COUNT,
    services.ExecuteIncreaseTrackCount())

task_execute_factory.register_producer(
    models.Log.PLUGIN_EXECUTE,
    services.ExecuteRunPlugin())

task_execute_factory.register_producer(
    models.Log.WORKFLOW_DATA_SQL_UPLOAD,
    services.ExecuteSQLUpload())
コード例 #2
0
    path('share_create/', views.share_create, name='share_create'),
    path('<int:pk>/share_delete/', views.share_delete, name='share_delete'),

    # Assign learner user email column
    path('assign_luser_column/',
         views.assign_luser_column,
         name='assign_luser_column'),
    path('<int:pk>/assign_luser_column/',
         views.assign_luser_column,
         name='assign_luser_column'),

    # API
    # Listing and creating workflows
    path('workflows/',
         api.WorkflowAPIListCreate.as_view(),
         name='api_workflows'),

    # Get, update content or destroy workflows
    path('<int:pk>/rud/',
         api.WorkflowAPIRetrieveUpdateDestroy.as_view(),
         name='api_rud'),

    # Manage workflow locks (get, set (post, put), unset (delete))
    path('<int:pk>/lock/', api.WorkflowAPILock.as_view(), name='api_lock'),
]

urlpatterns = format_suffix_patterns(urlpatterns)

task_execute_factory.register_producer(models.Log.WORKFLOW_UPDATE_LUSERS,
                                       services.ExecuteUpdateWorkflowLUser())