本文整理汇总了Python中dart.client.python.dart_client.Dart.await_subscription_generation方法的典型用法代码示例。如果您正苦于以下问题:Python Dart.await_subscription_generation方法的具体用法?Python Dart.await_subscription_generation怎么用?Python Dart.await_subscription_generation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dart.client.python.dart_client.Dart
的用法示例。
在下文中一共展示了Dart.await_subscription_generation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Column
# 需要导入模块: from dart.client.python.dart_client import Dart [as 别名]
# 或者: from dart.client.python.dart_client.Dart import await_subscription_generation [as 别名]
Column('eventVersion', DataType.STRING, path='owen.event.eventVersion'),
],
))))
print 'created dataset: %s' % dataset.id
subscription = dart.save_subscription(Subscription(data=SubscriptionData(
name='rmn_direct_subscription_DW-3307',
dataset_id=dataset.id,
s3_path_start_prefix_inclusive='s3://example-bucket/prd/inbound/overlord/raw/rmndirect/2015/09/04/',
on_success_email=['[email protected]'],
on_failure_email=['[email protected]'],
)))
print 'created subscription: %s' % subscription.id
print 'awaiting subscription generation...'
subscription = dart.await_subscription_generation(subscription.id)
assert subscription.data.state == SubscriptionState.ACTIVE
print 'done.'
datastore = dart.save_datastore(Datastore(
data=DatastoreData(
name='rmn_direct_adhoc_DW-3307',
engine_name='emr_engine',
state=DatastoreState.ACTIVE,
args={
# 'data_to_freespace_ratio': 0.10,
'instance_count': 2,
}
)
))
print 'created datastore: %s' % datastore.id