inlife / nexrender

📹 Data-driven render automation for After Effects
https://www.nexrender.com
MIT License
1.61k stars 325 forks source link

Job Not pickup by Worker when job add using command line #625

Closed TharakaSl closed 2 years ago

TharakaSl commented 3 years ago

nexrender-server and nexrender-worker works perfectly for me, but I want to add job via commandline arguement. Job added successfully in to database file as well. But issue is when adding job via command line worker not picking up the job and renderring not get start. Any help for this ?

Here is the sample command line arguement for your reference

cmd /C "node c:/abc/apps/server/src/index.js --task=abc-clip --userId=klkjljioj --jobData="{ \"assets\": [ ], \"actions\": { \"postrender\": [ { \"module\": \"@nexrender\/action-encode\", \"output\": \"output.mp4\", \"preset\": \"mp4\" }, { \"input\": \"output.mp4\", \"module\": \"@nexrender\/action-copy\", \"output\": \"c:\/abc\/rendered\/20210728125247.mp4\" } ] }, \"template\": { \"src\": \"file:\/\/\/C:\/abc\/templates\/recognitions\/football-v1\/football-v1.aet\", \"composition\": \"SAMPLE RENDER ME\" } }""

Here is the addJob function when command line "abc-clip" task run

async function addJob(data) {
    console.log(`Start job`);
    const job = create(data); {
        job.state = 'queued';
    }

    console.log(job);

    console.log(`creating new job ${job.uid}`)
    try {
        assert(validate(job) == true);
        insert(job);
    } catch (err) {
        console.log(err.stack);
        return err.stack;
    }
    console.log(job)
    return job;
}

Really appreciate any help to fix worker not picking up this job.

TharakaSl commented 3 years ago

@inlife your help really appreciate

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.