At a guess, your expid looks malformatted. Here's an example that I've used before (not using a git-versioned repository).
Approx file structure, run with artiq_master -r repository
:
repository/
my_experiment.py
Outside of an ARTIQ experiment, this is how you would submit an experiment:
import sipyco.pc_rpc as rpc
expid = {
"class_name": "MyClass",
"file": "my_experiment.py",
"arguments": {"arg_name": 5},
"log_level": 10,
"repo_rev": "N/A",
}
scheduler = rpc.Client(master_ip_address, master_port, "master_schedule")
scheduler.submit(pipeline_name="main", expid=expid, priority=0, due_date=None, flush=False)
A similar call, replacing rpc.Client
with self.get_device("scheduler")
should work in an ARTIQ experiment.
Here's the signature of scheduler.submit()
: https://github.com/m-labs/artiq/blob/9dee8bb9c90eb7a2dcd5a1549dd7d90807314630/artiq/master/scheduler.py#L411-L416