John T
12/10/2021, 12:33 AMthread.lock
issue. Is there anything I could do about this?
I also tried ResourceManager to see if I could avoid it, but that also is not working.Kevin Kho
John T
12/10/2021, 5:20 PMJohn T
12/10/2021, 5:21 PMthread.lock
since it can’t be serialized to other machines?
Sorry if this is a stupid question, just haven’t been able to find anything on this matterJohn T
12/10/2021, 5:22 PMKevin Kho
cloudpickle
Kevin Kho
Kevin Kho
John T
12/10/2021, 5:24 PMKevin Kho
Kevin Kho
John T
12/10/2021, 5:26 PMJohn T
12/10/2021, 7:43 PMKevin Kho
John T
12/10/2021, 7:45 PMJohn T
12/10/2021, 7:47 PMFLOW_CONFIG = {
'name': 'execrisk-stg',
'storage': Docker(
registry_url='<http://xxx.xxx.aws.com|xxx.xxx.aws.com>',
image_name='image-name',
image_tag='flow-stg-latest',
dockerfile='Dockerfile'
),
'executor': LocalDaskExecutor(
scheduler='processes',
num_workers=4
),
'run_config': ECSRun(
env={
'PREFECT__CLOUD__HEARTBEAT_MODE': 'thread'
},
task_definition_path='task-definitions/staging/flow-task-definition.json',
run_task_kwargs={
'networkConfiguration': {
}
}
}
),
'result': CloudPicklePrefectResult()
}
John T
12/10/2021, 7:47 PMKevin Kho
LocalExector()
?John T
12/10/2021, 7:50 PMKevin Kho
@task
decorator so that you don’t need always type it out. I can give a sample of that if it goes there.John T
12/10/2021, 7:52 PMKevin Kho
John T
12/10/2021, 8:04 PMUnexpected error: TypeError("cannot pickle '_thread.lock' object")
Kevin Kho
John T
12/10/2021, 8:16 PM@prefect.task(checkpoint=False)
as a decorator on a functioKevin Kho
@task(checkpoint=True, result=None)
just do be explicit?John T
12/10/2021, 8:25 PMJohn T
12/10/2021, 8:26 PMJohn T
12/10/2021, 8:26 PMKevin Kho
checkpoint=False
Kevin Kho
Kevin Kho
John T
12/10/2021, 8:29 PMJohn T
12/10/2021, 8:39 PMJohn T
12/10/2021, 8:39 PMKevin Kho