MMpy.Schedule.allocate_resource

Syntax

MMpy.Schedule.allocate_resource()

Description

Schedules allocating a resource to a task using newly created resource allocated object.

Parameters

Name Type Description
allocation_info SchedulerResourceAllocation​ | None Resource allocation info object. If none is provided, the resource is allocated as the task starts, with full utilisation​.
resource SchedulerResource Resource to allocate
task SchedulerTask Task to allocate the resource to
setup SchedulerCommand | None Resource allocation object setup command

Returns

Type Description
Bool True if the resource was successfully allocated to the task​

Resource ID

IDPH_SCHEDULE_ALLOCATE_RESOURCE