fgcz / bfabricPy

API and commad line tools for b-fabric

Home Page:https://fgcz.github.io/bfabricPy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

assign application executable to externaljob

cpanse opened this issue · comments

(hard constrain test by bfabric)

and check whenever we create an externaljob!!

{"workunitid": workunit._id,

'executableid': workunit_executable._id})

check if we can remove this line.

The line 913 cannot be removed from bfabric.py because that workunit_executable is now the "yaml" executable and not the applicationexecutable.

The problem seems to be the following:

  • The config includes the externaljobid: the submitter_externaljob has to be created before it.
  • The submitter_externaljob cannot be created without specifying an executableid, but the workunit_executable is created after the config to include the 'base64': base64.b64encode(config_serialized.encode()).decode()

A possible solution would be, if there are no other constraints violated:

  • create a yaml_workunit_executable before the submitter_externaljob in order to provide the correct executableid to the submitter_externaljob.
  • update the yaml_workunit_executable after the config definition to include 'base64': base64.b64encode(config_serialized.encode()).decode()

Successfully tested the BfabricWrapperCreator write_yaml() method. Issues with the submitter will be solved by issue27.